Esempio n. 1
0
 private void OnPlayerLandedOnBlock(BlockController blockController)
 {
     Rigidbody.drag = 2f;
     state          = PlayerState.Landed;
     if (Animator != null)
     {
         Animator.SetTrigger("Run");
     }
 }
Esempio n. 2
0
 public void ResetValues()
 {
     _selfRigidbody.velocity        = Vector3.zero;
     _selfRigidbody.angularVelocity = Vector3.zero;
     transform.rotation             = Quaternion.Euler(Vector3.zero);
     data            = default;
     nextBlock       = null;
     bottom          = null;
     ground          = null;
     isLastInSegment = false;
 }
Esempio n. 3
0
 private void OnPlayerLandedOnBlock(BlockController blockController)
 {
     _scoreText.text = GameManager.Instance.Counter.ToString();
 }