Exemple #1
0
    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);
    }
Exemple #2
0
 public override void Init(GameObject owner)
 {
     boss            = owner.GetComponent <Boss2Pot>();
     healthComponent = owner.GetComponent <Health>();
     base.Init(owner);
 }