// Start is called before the first frame update void Start() { State = FlyingState.Flying; groundP = GroundPredator.GetComponent <GroundPred>(); this.observer.Attach(groundP.GroundPredSub); }
public void SetUpPrey() { groundP = GroundPredator.GetComponent <GroundPred>(); this.prey.Attach(groundP.GroundPredSub); hasFood = false; this.curState = this.prey.State; }