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