Example #1
0
 void Start()
 {
     ctr = GameObject.FindGameObjectWithTag("Player").transform.GetChild(5).GetComponent <GameCtr>();
     if (SceneManager.GetActiveScene().buildIndex == 25)
     {
         ctr.LoadGame();
     }
 }
Example #2
0
 void Start()
 {
     ctr = GameObject.FindGameObjectWithTag("Player").transform.GetChild(5).GetComponent <GameCtr>();
     ctr.LoadGame();
 }