private bool isAbnormalReacting; //是否正在反应 private void Start() { //初始化,获得各种组件 rctMng = reactionManager.GetComponent <ReactionManager>(); mctMng = createManager.GetComponent <MatterCreateManager>(); nowWaitFrame = waitFrame; //ui = equUI.GetComponent<ReactionEquUI>(); thisMatter = this.GetComponent <MatterName>(); thisCondition_old = thisMatter.rctCondition; //activeEquIndex = null; //includeEqu = null; //includeObj = null; objList = new List <GameObject>(); objMatterList = new List <MatterName>(); objMatterList_old = new List <ReactionCondition>(); cmtEqus = new List <ChemicalEqu>(); abnormalChecked = false; }
private bool abnormalChecked; //非normal状态时是否检查过,提高效率 private void Start() { sprite = gameObject.transform.GetChild(2).gameObject; //初始化,获得各种组件 equUI = GameObject.Find("UI/ReactionEquUI").gameObject; rctMng = reactionManager.GetComponent <ReactionManager>(); mctMng = createManager.GetComponent <MatterCreateManager>(); ui = equUI.GetComponent <ReactionEquUI>(); thisMatter = this.GetComponent <MatterName>(); thisCondition_old = thisMatter.rctCondition; activeEquIndex = null; //includeEqu = null; //includeObj = null; objList = new List <GameObject>(); objMatterList = new List <MatterName>(); objMatterList_old = new List <ReactionCondition>(); cmtEqus = new List <ChemicalEqu>(); abnormalChecked = true; //nowWaitFrame = waitFrame; }