// Update is called once per frame void Update() { if (curPhase != null && isStarted) { curPhase.Update(); } }
public void MainLoop() { phase = phase.Update(); DX.ClearDrawScreen(); if (phase == null) { Close(); } }
void Update() { UpdateAbilities(); actualPhase.Update(); if (phaseQue.Count > 0) { actualPhase.Leave(); CreatePhase(phaseQue.Dequeue()); phaseQue.Clear(); } }
// Update is called once per frame void Update() { if (!m_paused) { if (m_phase.Update(Time.deltaTime)) { // When next phase starts Debug.Log(m_phase.CurrentPhase); for (int i = 0; i < m_phase.MaxCreeper; ++i) { Spawner.Instance.SpawnCreeper(); } } } }
void Update() { actualPhase.Update(); }