public override void Init(GameObject owner) { if (waypoints == null) { waypoints = new List <Waypoint>( GameObject.FindGameObjectsWithTag("Waypoint").Select(x => x.GetComponent <Waypoint>())); } if (boss == null) { boss = owner.GetComponent <Boss2Pot>(); } base.Init(owner); }
public override void Init(GameObject owner) { boss = owner.GetComponent <Boss2Pot>(); healthComponent = owner.GetComponent <Health>(); base.Init(owner); }