Пример #1
0
 // Update is called once per frame
 void Update()
 {
     scrollSpeed    = initialScrollSpeed * Mathf.Pow(1 - coinSlowPercentage, coinsCollected);
     deathWallSpeed = initialDeathWallSpeed - scrollSpeed;
     playerScore.AdjustScore(scrollSpeed * Time.deltaTime);
 }