コード例 #1
0
 public void Reset()
 {
     spriteRenderer.enabled = true;
     transform.position     = Vector3.zero;
     transform.rotation     = Quaternion.identity;
     state.Value            = CharacterState.Idle;
     rb.velocity            = Vector2.zero;
     rotationThisJump       = 0f;
     rotationLastFrame      = 0f;
     scoreManager.AddJumpScoreToTotal();
 }