예제 #1
0
 private void OnPlayerLandedOnBlock(BlockController blockController)
 {
     Rigidbody.drag = 2f;
     state          = PlayerState.Landed;
     if (Animator != null)
     {
         Animator.SetTrigger("Run");
     }
 }
예제 #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;
 }
예제 #3
0
 private void OnPlayerLandedOnBlock(BlockController blockController)
 {
     _scoreText.text = GameManager.Instance.Counter.ToString();
 }