Esempio n. 1
0
 private void OnTriggerExit(Collider playerCollider)
 {
     if (playerCollider.GetComponent <CharacterControls>())
     {
         CharacterControls player = playerCollider.GetComponent <CharacterControls>();
         player.reSpawnPosition = GetComponent <Transform>().position;
         player.spawnPosition   = GetComponent <Transform>().position;
         player.timerOk         = true;
     }
 }
Esempio n. 2
0
 private void Start()
 {
     player       = (CharacterControls)GameObject.FindObjectOfType(typeof(CharacterControls));
     timerDisplay = GetComponent <Text>();
 }
Esempio n. 3
0
 void Start()
 {
     gun    = GetComponent <Transform>();
     player = (CharacterControls)GameObject.FindObjectOfType(typeof(CharacterControls));
 }