Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        State   = FlyingState.Flying;
        groundP = GroundPredator.GetComponent <GroundPred>();

        this.observer.Attach(groundP.GroundPredSub);
    }
Пример #2
0
    public void SetUpPrey()
    {
        groundP = GroundPredator.GetComponent <GroundPred>();

        this.prey.Attach(groundP.GroundPredSub);
        hasFood       = false;
        this.curState = this.prey.State;
    }