// Use this for initialization void Start() { idle = false; spooped = true; running = false; withCorgi = false; cf = GetComponentInParent <CollectingFrands>(); corgiSprite = GameObject.Find("Corgi"); ca = corgiSprite.GetComponent <CorgiAnimations>(); corgi = GameObject.Find("Player 1"); }
public float detectAngle = 360f; //line of sight angle // Use this for initialization void Start() { corgi = GameObject.Find("Player 1"); sr = GetComponentInChildren <SpriteRenderer>(); cf = GetComponent <CollectingFrands>(); }