예제 #1
0
 // Update is called once per frame
 void Update()
 {
     grounded   = Grounded();
     horizontal = Input.GetAxisRaw("Horizontal");
     if (!attacking)
     {
         if (grounded && Input.GetButton("Jump"))
         {
             myBehavior.Jump();
         }
         if (Input.GetButtonDown("Attack"))
         {
             myBehavior.Chop();
         }
     }
 }