Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     Player = GameObject.Find("Player");
     SC     = GameObject.Find("SceneChanger").GetComponent <SceneChanger>();
     PM     = GameObject.Find("Player").GetComponent <Player_Manager>();
     if (!SC.justChanged)
     {
         Player.transform.position = transform.position;
     }
     else
     {
         SC.justChanged = false;
     }
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     SC     = GameObject.Find("SceneChanger").GetComponent <SceneChanger>();
     Player = GameObject.Find("Player");
 }