void IPooledObject.OnObjectSpawn() { playerTactics = GameObjectsHolder.Instance.PlayerPresenter.PlayerTactics; float percentageOfTimeSpentByThePlayerMoving = playerTactics.PercentageOfTimeSpentByThePlayerMoving; currentVelocityMultiplier = Mathf.Lerp(startVelocityMultiplier, finishVelocityMultiplier, percentageOfTimeSpentByThePlayerMoving); currentRotationVelocity = Mathf.Lerp(startRotationVelocity, finishRotationVelocity, percentageOfTimeSpentByThePlayerMoving); }
protected override void AwakeWrapped() { InitializeAnimations(); playerTactics = GameObjectsHolder.Instance.PlayerPresenter.PlayerTactics; CheckingIfTutorialNeedsToBeShownRoutineInfo = CreateCoroutineContainer(); }