//Change friendlyCreatureList and image of the button to the saved creature/upgrade type at TargetCreature function. void ChangeCreature(int location) { PublicLevel.UpdateFriendlyList(location, changingInfo); upgradeShop.transform.GetChild(2 + location).GetChild(0).GetComponent <Image>().sprite = PublicLevel.friendlyImageList[location]; //player use 10 corns per changing upgrade mode will be fixed soon. cornText.text = PublicLevel.GetCorn().ToString(); //make location button no longer interactable for (int i = 0; i < PublicLevel.usingCreatureNum; i++) { locationButton[i].interactable = false; } }