Example #1
0
 // 销毁一个道具,force为真则表示直接销毁,否则通知道具开始销毁
 public void destroyItem(SceneItemBase item, bool force = false)
 {
     if (!item.getSelfControlDestroy() || force)
     {
         item.destroy();
         mItemList[item.getItemType()].Remove(item);
     }
     else
     {
         item.notifyDestroy();
     }
 }
Example #2
0
    public override string showDebugInfo()
    {
        SCENE_ITEM type = mSceneItem != null?mSceneItem.getItemType() : SCENE_ITEM.SI_MAX;

        return(this.GetType().ToString() + " : type : " + type);
    }