Skip to content

Commit

Permalink
Got the beginnings of a third room
Browse files Browse the repository at this point in the history
  • Loading branch information
mikelovesrobots committed Apr 21, 2012
1 parent 9b88b5e commit 0ea93e5
Show file tree
Hide file tree
Showing 43 changed files with 13 additions and 0 deletions.
Binary file modified nano/Assets/Models/spawn.jas
Binary file not shown.
Binary file added nano/Assets/Prefabs/Gate.prefab
Binary file not shown.
Binary file added nano/Assets/Prefabs/SpawnPoint.prefab
Binary file not shown.
Binary file modified nano/Assets/Scenes/TheOnlyScene.unity
Binary file not shown.
6 changes: 6 additions & 0 deletions nano/Assets/Scripts/OnTriggerRespawn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#pragma strict

function OnTriggerEnter (other : Collider) {
other.gameObject.transform.position = RespawnPoint.lastPoint.position;
other.gameObject.transform.rotation = RespawnPoint.lastPoint.rotation;
}
7 changes: 7 additions & 0 deletions nano/Assets/Scripts/RespawnPoint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#pragma strict

static var lastPoint : Transform;

function OnTriggerEnter () {
lastPoint = transform;
}
Binary file modified nano/Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll
Binary file not shown.
Binary file modified nano/Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll.mdb
Binary file not shown.
Binary file modified nano/Library/ScriptAssemblies/Assembly-CSharp.dll
Binary file not shown.
Binary file modified nano/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified nano/Library/ScriptAssemblies/Assembly-UnityScript-firstpass.dll
Binary file not shown.
Binary file not shown.
Binary file modified nano/Library/ScriptAssemblies/Assembly-UnityScript.dll
Binary file not shown.
Binary file modified nano/Library/ScriptAssemblies/Assembly-UnityScript.dll.mdb
Binary file not shown.
Binary file modified nano/Library/assetDatabase3
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified nano/Library/expandedItems
Binary file not shown.
Binary file modified nano/Library/guidmapper
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified nano/Library/metadata/47/476b4743437844f1d92f8988753cd8a1
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified nano/Library/previews/47/476b4743437844f1d92f8988753cd8a1
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 0ea93e5

Please sign in to comment.