private void ClearTraitRewardIcons() { //Debug.Log("ClassChangePanelController.ClearRewardIcons()"); foreach (RewardButton rewardIcon in traitRewardIcons) { objectPooler.ReturnObjectToPool(rewardIcon.gameObject); } traitRewardIcons.Clear(); }
public void RemoveEquipmentObjects() { foreach (Dictionary <AttachmentNode, GameObject> holdableObjectReferences in currentEquipmentPhysicalObjects.Values) { //Debug.Log("MecanimModelController.RemoveEquipmentObjects(): destroying objects "); foreach (GameObject holdableObjectReference in holdableObjectReferences.Values) { //Debug.Log("MecanimModelController.RemoveEquipmentObjects(): destroying object: " + holdableObjectReference.name); objectPooler.ReturnObjectToPool(holdableObjectReference); } } currentEquipmentPhysicalObjects.Clear(); }
public void ClearOptionButtons() { // clear the quest list so any quests left over from a previous time opening the window aren't shown //Debug.Log("LoadGamePanel.ClearLoadButtons()"); foreach (NewGameCharacterClassButton optionButton in optionButtons) { if (optionButton != null) { optionButton.DeSelect(); objectPooler.ReturnObjectToPool(optionButton.gameObject); } } uINavigationControllers[0].ClearActiveButtons(); optionButtons.Clear(); }
public void ResetSettings() { foreach (GameObject go in miniMapLayers.Values) { objectPooler.ReturnObjectToPool(go); } miniMapLayers.Clear(); interactable = null; setupComplete = false; }
private void ClearRewardIcons() { //Debug.Log("FactionChangePanelController.ClearRewardIcons()"); foreach (RewardButton rewardIcon in abilityRewardIcons) { objectPooler.ReturnObjectToPool(rewardIcon.gameObject); } abilityRewardIcons.Clear(); abilityRewardsGrid.ClearActiveButtons(); }
public void ClearButtons() { //Debug.Log("InteractionPanelUI.ClearButtons()"); // clear the skill list so any skill left over from a previous time opening the window aren't shown foreach (InteractionPanelQuestScript qs in questScripts) { qs.transform.SetParent(null); qs.DeSelect(); objectPooler.ReturnObjectToPool(qs.gameObject); } questScripts.Clear(); foreach (InteractionPanelScript interactionPanelScript in interactionPanelScripts) { interactionPanelScript.transform.SetParent(null); objectPooler.ReturnObjectToPool(interactionPanelScript.gameObject); } interactionPanelScripts.Clear(); uINavigationControllers[0].ClearActiveButtons(); }
public void RemoveNamePlate(NamePlateUnit namePlateUnit) { //Debug.Log("NamePlatemanager.RemoveNamePlate(" + namePlateUnit.DisplayName + ")"); if (namePlates.ContainsKey(namePlateUnit)) { if (namePlates[namePlateUnit] != null && namePlates[namePlateUnit].gameObject != null) { objectPooler.ReturnObjectToPool(namePlates[namePlateUnit].gameObject); } namePlates.Remove(namePlateUnit); } }
private void ClearRewardIcons() { //Debug.Log("QuestDetailsArea.ClearRewardIcons()"); // items foreach (RewardButton rewardIcon in itemRewardIcons) { rewardIcon.Unselect(); objectPooler.ReturnObjectToPool(rewardIcon.gameObject); } itemRewardIcons.Clear(); itemGrid.ClearActiveButtons(); // abilties foreach (RewardButton rewardIcon in abilityRewardIcons) { rewardIcon.Unselect(); objectPooler.ReturnObjectToPool(rewardIcon.gameObject); } abilityRewardIcons.Clear(); abilityGrid.ClearActiveButtons(); // skills foreach (RewardButton rewardIcon in skillRewardIcons) { rewardIcon.Unselect(); objectPooler.ReturnObjectToPool(rewardIcon.gameObject); } skillRewardIcons.Clear(); skillGrid.ClearActiveButtons(); // factions foreach (RewardButton rewardIcon in factionRewardIcons) { rewardIcon.Unselect(); objectPooler.ReturnObjectToPool(rewardIcon.gameObject); } factionRewardIcons.Clear(); factionGrid.ClearActiveButtons(); }
/* * public override void ReceiveClosedWindowNotification() { * //Debug.Log("NewGameMecanimCharacterPanelController.RecieveClosedWindowNotification()"); * base.ReceiveClosedWindowNotification(); * OnCloseWindow(this); * } * * public override void ProcessOpenWindowNotification() { * //Debug.Log("NewGameMecanimCharacterPanelController.ProcessOpenWindowNotification()"); * base.ProcessOpenWindowNotification(); * * } */ public void ClearOptionButtons() { //Debug.Log("LoadGamePanel.ClearLoadButtons()"); foreach (NewGameUnitButton optionButton in optionButtons) { if (optionButton != null) { optionButton.DeSelect(); objectPooler.ReturnObjectToPool(optionButton.gameObject); } } uINavigationControllers[0].ClearActiveButtons(); optionButtons.Clear(); }
public void ClearMusicProfiles() { //Debug.Log("SkillTrainerUI.ClearSkills()"); // clear the skill list so any skill left over from a previous time opening the window aren't shown foreach (MusicPlayerHighlightButton musicPlayerHighlightButton in musicPlayerHighlightButtons) { if (musicPlayerHighlightButton != null) { musicPlayerHighlightButton.gameObject.transform.SetParent(null); musicPlayerHighlightButton.DeSelect(); objectPooler.ReturnObjectToPool(musicPlayerHighlightButton.gameObject); } } musicPlayerHighlightButtons.Clear(); uINavigationControllers[0].ClearActiveButtons(); }
public void ClearQuests() { //Debug.Log("QuestTrackerUI.ClearQuests()"); // clear the quest list so any quests left over from a previous time opening the window aren't shown foreach (QuestTrackerQuestScript qs in questScripts) { if (qs.gameObject != null) { //Debug.Log("The questnode has a gameobject we need to clear"); qs.gameObject.transform.SetParent(null); objectPooler.ReturnObjectToPool(qs.gameObject); } } questScripts.Clear(); uINavigationControllers[0].ClearActiveButtons(); }
public void ClearSkills() { //Debug.Log("SkillTrainerUI.ClearSkills()"); // clear the skill list so any skill left over from a previous time opening the window aren't shown foreach (SkillTrainerSkillScript skill in skillScripts) { if (skill != null) { skill.gameObject.transform.SetParent(null); skill.DeSelect(); objectPooler.ReturnObjectToPool(skill.gameObject); } } skillScripts.Clear(); uINavigationControllers[0].ClearActiveButtons(); }