Exemplo n.º 1
0
 private GameManager()
 {
     m_TimerSystem = new CTimerSystem();
     m_TimerSystem.Create();
     curWave     = 0;
     pathLoader  = new PathLoader();
     monsterSeq  = new MonsterSequence();
     pathMonster = new Dictionary <int, int>();
 }
Exemplo n.º 2
0
 public void StartAI()
 {
     Debug.Log("StartAI");
     if (null == m_TimerSystem)
     {
         m_TimerSystem = new CTimerSystem();
         m_TimerSystem.Create();
     }
     m_TimerSystem.CreateTimer(1, 1000, UpdateMonsterAI);
 }
Exemplo n.º 3
0
    //-------------------------------------------------------------------------
    public void OnCreateTimer4()
    {
        CancelInvoke();

        Debug.Log("OnCreateTimer4 - " + Time.time * 1000);
        if (null == m_TimerSystem)
        {
            m_TimerSystem = new CTimerSystem();
            m_TimerSystem.Create();
        }

        m_TimerSystem.CreateTimer(1, 1000, OnTimeTest1);
        //m_TimerSystem.CreateTimer(2, 1200, OnTimeTest1);

        m_TimerSystem.CreateTimer(1, 1000, OnTimeTest2);
    }
Exemplo n.º 4
0
    //-------------------------------------------------------------------------
    public void OnCreateTimer4()
    {
        CancelInvoke();
        if (null != m_DesLabel)
        {
            m_DesLabel.text = "开始:OnCreateTimer4 - " + Time.time * 1000;
            Debug.Log("OnCreateTimer4 - " + Time.time * 1000);
        }

        if (null == m_TimerSystem)
        {
            m_TimerSystem = new CTimerSystem();
            m_TimerSystem.Create();
        }

        m_TimerSystem.CreateTimer(1, 1000, OnTimeTest1);
        m_TimerSystem.CreateTimer(2, 1200, OnTimeTest1);

        m_TimerSystem.CreateTimer(1, 1000, OnTimeTest2);
    }
Exemplo n.º 5
0
 private void Awake()
 {
     _instance = this;
     ScoreReset();
 }