R to reset
This commit is contained in:
parent
ae9b1f06b9
commit
b3bea6f1cd
|
@ -11,7 +11,6 @@ public class Controls : MonoBehaviour
|
||||||
public GameObject column3;
|
public GameObject column3;
|
||||||
|
|
||||||
public GameObject selectedDisc;
|
public GameObject selectedDisc;
|
||||||
public GameObject selectedColumn;
|
|
||||||
|
|
||||||
public List<GameObject> discs;
|
public List<GameObject> discs;
|
||||||
|
|
||||||
|
@ -34,6 +33,8 @@ public class Controls : MonoBehaviour
|
||||||
this.column1.GetComponent<Cylinder>().selected = true;
|
this.column1.GetComponent<Cylinder>().selected = true;
|
||||||
this.column2.GetComponent<Cylinder>().selected = false;
|
this.column2.GetComponent<Cylinder>().selected = false;
|
||||||
this.column3.GetComponent<Cylinder>().selected = false;
|
this.column3.GetComponent<Cylinder>().selected = false;
|
||||||
|
|
||||||
|
this.selectedDisc = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
GameObject GetSelectedColumn()
|
GameObject GetSelectedColumn()
|
||||||
|
@ -99,5 +100,10 @@ public class Controls : MonoBehaviour
|
||||||
this.selectedDisc = null;
|
this.selectedDisc = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Input.GetKeyUp("r"))
|
||||||
|
{
|
||||||
|
Application.LoadLevel(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ EditorBuildSettings:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Scenes:
|
m_Scenes:
|
||||||
- enabled: 1
|
- enabled: 0
|
||||||
path: Assets/Scenes/SampleScene.unity
|
path:
|
||||||
guid: 99c9720ab356a0642a771bea13969a05
|
guid: 00000000000000000000000000000000
|
||||||
m_configObjects: {}
|
m_configObjects: {}
|
||||||
|
|
|
@ -36,6 +36,8 @@ GraphicsSettings:
|
||||||
- {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
|
- {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
- {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
|
- {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
- {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0}
|
- {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
- {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
- {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
m_PreloadedShaders: []
|
m_PreloadedShaders: []
|
||||||
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
|
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
|
||||||
type: 0}
|
type: 0}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
UnityConnectSettings:
|
UnityConnectSettings:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
serializedVersion: 1
|
serializedVersion: 1
|
||||||
m_Enabled: 0
|
m_Enabled: 1
|
||||||
m_TestMode: 0
|
m_TestMode: 0
|
||||||
m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events
|
m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events
|
||||||
m_EventUrl: https://cdp.cloud.unity3d.com/v1/events
|
m_EventUrl: https://cdp.cloud.unity3d.com/v1/events
|
||||||
|
|
Loading…
Reference in New Issue