//Unless decided otherwise all AI should know what the player is protected void Start() { _player = GameObject.FindGameObjectWithTag("Player"); _playerHealth = _player.GetComponent <PlayerCombat>(); //Get the light finder script _lightFinder = gameObject.GetComponent <LightFinder>(); //Will set a health of 100 100 and come with functions to be healed and damaged //Unless otherwise stated -- allow certain enemies to be spawned with these inputs complete //Have it so damage functions can be stored in the health class, so we can simply pass in the private max + current health here health = new Health(_maxHealth, _health); _health = health.CurrentHealth; _maxHealth = health.MaxHealth; }
// Use this for initialization void Start() { lightFinder = GetComponent <LightFinder>(); }