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