Exemplo n.º 1
0
 void Slide()
 {
     pos = POSE.SLIDING;
     anim.SetTrigger("Sliding");
 }
Exemplo n.º 2
0
 void Jump()
 {
     pos = POSE.JUMPPING;
     anim.SetTrigger("Jump");
     rb.AddForce(Vector2.up * jumpForce);
 }
Exemplo n.º 3
0
 public LayerMask groundLayer; //地面のレイヤー
 // Use this for initialization
 void Start()
 {
     pos  = POSE.FLOATING;
     rb   = GetComponent <Rigidbody2D>();
     anim = GetComponent <Animator>();
 }