Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Still works
  • Loading branch information
smz11006 committed Oct 6, 2015
1 parent 22f22e3 commit a33242f
Show file tree
Hide file tree
Showing 14 changed files with 94 additions and 5 deletions.
Binary file modified Test_CYOA/Assets/CYO_Layout.unity
Binary file not shown.
Binary file modified Test_CYOA/Assets/CYO_Victory.unity
Binary file not shown.
9 changes: 5 additions & 4 deletions Test_CYOA/Assets/Scripts/Scriptory.cs
Expand Up @@ -2,14 +2,15 @@
using System.Collections;

public class Scriptory : MonoBehaviour {


// Update is called once per frame
void Update ()
{
if (Input.GetKeyDown(KeyCode.Escape))
{

}
}
Application.LoadLevel(0);
Debug.Log("hit registered");
}
}
}
88 changes: 88 additions & 0 deletions Test_CYOA/Assets/Scripts/WorldUpdates.cs
Expand Up @@ -303,6 +303,94 @@ public class WorldUpdates : MonoBehaviour
}
}

//Victory Screen
if (Physics.Raycast(ray, out hit))
{
if (Input.GetKeyDown(KeyCode.Mouse0))
{
if (hit.transform.name == "TreasureTube")
{
updateField = "did i win?";
Application.LoadLevel(1);

}

}
}
if (Physics.Raycast(ray, out hit))
{
if (Input.GetKeyDown(KeyCode.Mouse0))
{
if (hit.transform.name == "TreasureTube1")
{
updateField = "did i win?";
Application.LoadLevel(1);

}

}
}


if (Physics.Raycast(ray, out hit))
{
if (Input.GetKeyDown(KeyCode.Mouse0))
{
if (hit.transform.name == "TreasureTube2")
{
updateField = "did i win?";
Application.LoadLevel(1);

}

}
}


if (Physics.Raycast(ray, out hit))
{
if (Input.GetKeyDown(KeyCode.Mouse0))
{
if (hit.transform.name == "TreasureTube3")
{
updateField = "did i win?";
Application.LoadLevel(1);

}

}
}


if (Physics.Raycast(ray, out hit))
{
if (Input.GetKeyDown(KeyCode.Mouse0))
{
if (hit.transform.name == "TreasureTube4")
{
updateField = "did i win?";
Application.LoadLevel(1);

}

}
}

if (Physics.Raycast(ray, out hit))
{
if (Input.GetKeyDown(KeyCode.Mouse0))
{
if (hit.transform.name == "TreasureTube5")
{
updateField = "did i win?";
Application.LoadLevel(1);

}

}
}




//Text - Update Field -- Keep Last
Expand Down
Binary file modified Test_CYOA/Library/CurrentLayout.dwlt
Binary file not shown.
Binary file modified Test_CYOA/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb
Binary file not shown.
Binary file modified Test_CYOA/Library/assetDatabase3
Binary file not shown.
Binary file modified Test_CYOA/Library/expandedItems
Binary file not shown.
Binary file modified Test_CYOA/Library/metadata/00/00000000000000004000000000000000
Binary file not shown.
Binary file modified Test_CYOA/Library/metadata/00/0000000000000000b000000000000000
Binary file not shown.
Binary file modified Test_CYOA/Library/metadata/27/27508ec7269108042903d01046a2ea11
Binary file not shown.
Binary file modified Test_CYOA/Library/metadata/d9/d928191460a3b3146888f7b669385d64
Binary file not shown.
Binary file modified Test_CYOA/ProjectSettings/EditorBuildSettings.asset
Binary file not shown.
2 changes: 1 addition & 1 deletion Test_CYOA/Test_CYOA.sln
Expand Up @@ -17,7 +17,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = Assembly-CSharp.csproj
Policies = $0
$0.TextStylePolicy = $1
Expand Down

0 comments on commit a33242f

Please sign in to comment.