Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     player        = GameObject.Find("Player");
     _playerHealth = player.GetComponent <PlayerHealthHelper>();
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     _healthHelper = GetComponent <HealthHelper>();
     _gun          = GetComponentInChildren <PlayerShooting>();
     _target       = GameObject.Find("Player").GetComponent <PlayerHealthHelper>();
 }
Beispiel #3
0
 void Awake()
 {
     startPoint    = this.transform.position;
     player        = GameObject.Find("Player");
     _playerHealth = player.GetComponent <PlayerHealthHelper>();
 }