Exemple #1
0
 void SetInitial()
 {
     gunMaster             = GetComponent <Gun_Master>();
     playerMaster          = GetComponentInParent <Player_Master>();
     gameManagerMaster     = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameManager_Master>();
     gunMaster.isGunLoaded = true;
 }
 void SetInitial()
 {
     gameManagerMaster = GameObject.Find("GameController").GetComponent <GameManager_Master>();
     playerMaster      = GetComponent <Player_Master>();
 }
 void SetInitial()
 {
     gameManagerMaster = GetComponent <GameManager_Master>();
     fpsScript         = GameObject.FindGameObjectWithTag("Player").GetComponent <FirstPersonController>();//gets a reference to the player movement script
 }
 void SetInitial()
 {
     gameManagerMaster = GetComponent <GameManager_Master>();
 }