// 实例化所有的模块 protected virtual void InitializeFacade() { m_model = new Model(); m_view = new View(); m_controller = new Controller(); m_manager = new GManager(); }
void Awake() { Application.targetFrameRate = 30; gm = this ; IGState.st.Score = new IGScores(); IGState.st.Score.HP = 200; IGState.st.Score.OriginalHP = 200 ; IGState.st.Score.GoldCoin = 0 ; //gameObject.collider if (_player == null ) _player = GameObject.FindWithTag ("Player") ; }