コード例 #1
0
    private void OnTick(float actualTimeInterval)
    {
        if (!_isPause && !_battleShouldFinished)
        {
            _timer -= TimeManager.ONE_SECOND_TICK;

            int elapsedTime = turnTime - _timer;

            _fakeServer.DoTick(elapsedTime);

            _externalLogic.OnTick(elapsedTime);

            if (_timer <= 0)
            {
                FinishThisTurn();
            }
        }
    }