void Awake() { //SpriteRenderer sprite = new SpriteRenderer(); //sprite.color = Color.red; cat = GameObject.FindGameObjectWithTag("WholeCat").GetComponent <UpCat>(); cat2 = GameObject.FindGameObjectWithTag("Cat2").GetComponent <DownCat>(); upCatHeadAnimator = GameObject.FindGameObjectWithTag("Cat1").GetComponent <Animator>(); }
void Start() { cat = GameObject.FindGameObjectWithTag("Cat2").GetComponent <DownCat>(); anim = GetComponent <Animator>(); }