private void OnChange() { if (curDogInteraction) { LookInteraction tempLI = GetComponentInChildren <LookInteraction>(); //curDogInteraction.transform.Find ("ActionSelect"). tempLI.ChangeSprite(); curDogInteraction.isFollowing = false; StopCoroutine(curDogInteraction.transform.GetComponent <DogInteraction>().FollowTarget); curDogInteraction = this; //.gameObject; //check for bugs especially for switching multiple pets // if (Equals (curDogInteraction, this)) //StopCoroutine (FollowPlayer); } }