示例#1
0
    void IPooledObject.OnObjectSpawn()
    {
        playerTactics = GameObjectsHolder.Instance.PlayerPresenter.PlayerTactics;
        float percentageOfTimeSpentByThePlayerMoving = playerTactics.PercentageOfTimeSpentByThePlayerMoving;

        currentVelocityMultiplier = Mathf.Lerp(startVelocityMultiplier, finishVelocityMultiplier, percentageOfTimeSpentByThePlayerMoving);
        currentRotationVelocity   = Mathf.Lerp(startRotationVelocity, finishRotationVelocity, percentageOfTimeSpentByThePlayerMoving);
    }
示例#2
0
 protected override void AwakeWrapped()
 {
     InitializeAnimations();
     playerTactics = GameObjectsHolder.Instance.PlayerPresenter.PlayerTactics;
     CheckingIfTutorialNeedsToBeShownRoutineInfo = CreateCoroutineContainer();
 }