public void CheckFruit() { if (dungeon_stuff.has_fruit > 0) { cow.GetComponent <Following>().enabled = true; cow.GetComponent <Following>().target = player.GetComponent <Followers>().LastFollower(); cow.GetComponent <Following>().SetTarget(); player.GetComponent <Followers>().AddFollower(cow); dungeon_stuff.GetCow(); dungeon_stuff.has_fruit--; notification.AddText("You hold out a fresh vine fruit and the beast happily consumes it."); notification.AddText("It begins following you around."); gameObject.SetActive(false); } }