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