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); }
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(); } }
public override void Deactivate() { renderObj.Deactivate(); visable = false; }