コード例 #1
0
ファイル: States.cs プロジェクト: vzat/Battle_of_Wolf_359
    void Destroy()
    {
        fleetManager.RemoveShip(owner.GetComponent <Boid>());

        //fleetManager.ships.Remove(owner.GetComponent<Boid>());
        //fleetManager.borg.GetComponent<Borg>().ships.Remove(owner.GetComponent<Boid>());
        fleetManager.shipsDestroyed++;
        owner.GetComponent <ObstacleAvoidance>().enabled = false;
        owner.GetComponent <StateMachine>().ChangeState(new WreckState());
    }