예제 #1
0
    void OnEnable()
    {
        boidComponent = transform.GetComponent<Boid>();

        boidComponent.GetBehaviour("ToEnemy").SetWeight(0);
        boidComponent.GetBehaviour("ToPlayer").SetWeight(0);
        boidComponent.GetBehaviour("ToTracker").SetWeight(1);

        transform.GetComponent<ArrivalBehaviour>().targetObject = Game.TouchTracker;

        boidComponent.Speed = boidComponent.maxSpeed;

        powerups = new List<Powerup>();
    }