private GameManager() { m_TimerSystem = new CTimerSystem(); m_TimerSystem.Create(); curWave = 0; pathLoader = new PathLoader(); monsterSeq = new MonsterSequence(); pathMonster = new Dictionary <int, int>(); }
public void StartAI() { Debug.Log("StartAI"); if (null == m_TimerSystem) { m_TimerSystem = new CTimerSystem(); m_TimerSystem.Create(); } m_TimerSystem.CreateTimer(1, 1000, UpdateMonsterAI); }
//------------------------------------------------------------------------- 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); }
//------------------------------------------------------------------------- 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); }