// Start is called before the first frame update void Start() { boid = GetComponent <Boid>(); energyMultiplier = 1; if (boid != null) { boid.switchState(new GrazeState(boid, this)); attackDistance = 1; energyMultiplier = .5f; StartCoroutine(GrowUpAnimation()); } spOrient = GetComponent <SpriteOrienter>(); energy = 30; }
// Start is called before the first frame update void Start() { //CoyoteBoidManager.Instance.InitilizeBoids(); boid = GetComponent <Boid>(); energyMultiplier = 1; if (boid != null) { boid.switchState(new GrazeState(boid, this)); attackDistance = 1; energyMultiplier = .5f; } spOrient = GetComponent <SpriteOrienter>(); energy = 30; }