diff --git a/playable/Assets/Scenes/Level2.unity b/playable/Assets/Scenes/Level2.unity index 7a49fbb..4c08720 100644 Binary files a/playable/Assets/Scenes/Level2.unity and b/playable/Assets/Scenes/Level2.unity differ diff --git a/playable/Assets/flameColor.cs b/playable/Assets/Scripts/flameColor.cs similarity index 100% rename from playable/Assets/flameColor.cs rename to playable/Assets/Scripts/flameColor.cs diff --git a/playable/Assets/flameColor.cs.meta b/playable/Assets/Scripts/flameColor.cs.meta similarity index 100% rename from playable/Assets/flameColor.cs.meta rename to playable/Assets/Scripts/flameColor.cs.meta diff --git a/playable/Assets/Scripts/playerId.cs b/playable/Assets/Scripts/playerId.cs index 1fb10cd..37d6b17 100644 --- a/playable/Assets/Scripts/playerId.cs +++ b/playable/Assets/Scripts/playerId.cs @@ -2,8 +2,11 @@ using System.Collections; public class playerId : MonoBehaviour { - public bool idVanish = true; - + public bool idVanish = false; + public GameObject p1; + public GameObject p2; + public GameObject p3; + public GameObject p4; // Use this for initialization void Start () { @@ -15,17 +18,23 @@ public class playerId : MonoBehaviour { transform.eulerAngles = new Vector3 (transform.eulerAngles.x, 180, transform.eulerAngles.z); + if (Input.GetKeyDown (KeyCode.Backspace)) { idVanish = true; if (idVanish) { - transform.position = new Vector3 (transform.position.x, -100, transform.position.z); - idVanish = false; - Debug.Log ("player ID true"); + p1.SetActive (false); + p2.SetActive (false); + p3.SetActive (false); + p4.SetActive (false); + Debug.Log ("player ID false"); } } - if (Input.GetKeyDown (KeyCode.Backspace) && idVanish == false) { - transform.position = new Vector3 (transform.position.x, 100, transform.position.z); - idVanish = true; + if (Input.GetKeyDown (KeyCode.Backspace) && idVanish == true) { + p1.SetActive (true); + p2.SetActive (true); + p3.SetActive (true); + p4.SetActive (true); + idVanish = false; }