Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (isPaused)
     {
         return;
     }
     timer += Time.deltaTime * timeMultiplier;
     if (timer >= timePerTurn)
     {
         currentTurn++;
         timer = 0;
         PrepareTurn();
         ExecuteTurn();
     }
     robotManager.AdjustRobotObjects(timer / timePerTurn);
     worldObjectManager.AdjustWorldObjects(timer / timePerTurn);
 }