public void switch_optin_sys(SystermType _type,bool _switch) { if(_switch) { m_sys_dic[_type].open(); } else { m_sys_dic[_type].close(); } }
public void open_sys(SystermType _type) { if(m_current_systerm!=null) { m_current_systerm.close(); } m_current_systerm=m_sys_dic[_type]; m_current_systerm.open(); foreach(KeyValuePair<SystermType,SSysterm> _kv in m_sys_dic) { _kv.Value.refresh_life(_type); } }
public void refresh_life(SystermType _type) { if(m_sys_type==_type) { m_lifes=mc_max_life; } else { m_lifes--; if(m_lifes<=0) { release_panels(); } } }