示例#1
0
        protected bool SwitchToInactive(List <UpdateObject> updateList, List <RenderObject> renderList)
        {
            bool result = false;

            if (state != States.Inactive)
            {
                renderPanel.Deactivate();
                renderList.Remove(renderPanel);
                updateObj.Deactivate();
                updateList.Remove(updateObj);
                result = true; // remove us
            }
            return(result);
        }
示例#2
0
        protected void RemoveCards()
        {
            for (int indexClause = 0; indexClause < this.listWhenClause.Count; indexClause++)
            {
                ControlRenderObj renderObj = this.listWhenClause[indexClause] as ControlRenderObj;
                renderObj.Deactivate();
                renderPanel.renderList.Remove(renderObj);
            }
            this.listWhenClause.Clear();

            for (int indexClause = 0; indexClause < this.listDoClause.Count; indexClause++)
            {
                ControlRenderObj renderObj = this.listDoClause[indexClause] as ControlRenderObj;
                renderObj.Deactivate();
                renderPanel.renderList.Remove(renderObj);
            }
            this.listDoClause.Clear();

            for (int indexCard = 0; indexCard < this.listControls.Count; indexCard++)
            {
                GameObject gameObjCard = this.listControls[indexCard] as GameObject;
                gameObjCard.Deactivate();
            }
        }
示例#3
0
 public override void Deactivate()
 {
     renderObj.Deactivate();
     visable = false;
 }