Exemplo n.º 1
0
 // 实例化所有的模块
 protected virtual void InitializeFacade()
 {
     m_model = new Model();
     m_view = new View();
     m_controller = new Controller();
     m_manager = new GManager();
 }
Exemplo n.º 2
0
    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") ;
    }