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