Esempio n. 1
0
    new void Awake()
    {
        base.Awake();

        _rollbackTimer = new RollbackTimer(_timeBeforeSelfDestruct);
        SetGameObjectActive();
    }
Esempio n. 2
0
        // Start is called before the first frame update
        void Start()
        {
            if (registerPlayer)
            {
                _playerId = RollbackManager.rbInputManager.AddPlayer();
            }

            _playerMovement = GetComponent <PlayerMovement>();
            InScreenManager._instance.RegisterObject(transform);

            _rollbackTimerBetweenShoots = new RollbackTimer(_timeBetweenShootsTick);
            _rollbackTimerBetweenShoots.Reset();
        }
Esempio n. 3
0
 void Start()
 {
     _asteroidPoolManager = GetComponent <PoolManager>();
     _asteroidSpawnRate   = new RollbackTimer(_timeBetweenAsteroidSpawn);
     _asteroidSpawnRate.Reset();
 }