new void Awake() { base.Awake(); _rollbackTimer = new RollbackTimer(_timeBeforeSelfDestruct); SetGameObjectActive(); }
// 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(); }
void Start() { _asteroidPoolManager = GetComponent <PoolManager>(); _asteroidSpawnRate = new RollbackTimer(_timeBetweenAsteroidSpawn); _asteroidSpawnRate.Reset(); }