示例#1
0
 private void ClearRandomChests()
 {
     foreach (GameObject go in _mChestList.Values)
     {
         GraphicsTools.ManualDestroyObject(go, false);
     }
     _mChestList.Clear();
 }
示例#2
0
    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);
    }
示例#3
0
    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);
 }