private void ClearRandomChests() { foreach (GameObject go in _mChestList.Values) { GraphicsTools.ManualDestroyObject(go, false); } _mChestList.Clear(); }
public void DestroyRandomChest(int chestID) { GameObject go = null; if (_mChestList.TryGetValue(chestID, out go)) { GraphicsTools.ManualDestroyObject(go, false); _mChestList.Remove(chestID); } // Globals.Instance.MGUIManager.GetGUIWindow<GUIMain>().UpdateCopyChestShow(_mChestList.Count); }
protected virtual void ClearIndicator() { if (null != _IndicatorEffect) { GraphicsTools.ManualDestroyObject(_IndicatorEffect, true); _IndicatorEffect = null; } // if (null != _mRoute) // { // GraphicsTools.ManualDestroyObject(_mRoute); // _mRoute = null; // } }
public void DestroyChest(GameObject go) { chestObjs.Remove(go); GraphicsTools.ManualDestroyObject(go, false); }