예제 #1
0
 private GameManager()
 {
     m_TimerSystem = new CTimerSystem();
     m_TimerSystem.Create();
     curWave     = 0;
     pathLoader  = new PathLoader();
     monsterSeq  = new MonsterSequence();
     pathMonster = new Dictionary <int, int>();
 }
예제 #2
0
파일: Test1.cs 프로젝트: pixar2016/Assets
 public void StartAI()
 {
     Debug.Log("StartAI");
     if (null == m_TimerSystem)
     {
         m_TimerSystem = new CTimerSystem();
         m_TimerSystem.Create();
     }
     m_TimerSystem.CreateTimer(1, 1000, UpdateMonsterAI);
 }
예제 #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);
    }
예제 #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);
    }