コード例 #1
0
 void Update()
 {
     if (IsAttacking)
     {
         sword.PlayAttackAnimation();
     }
 }
コード例 #2
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKey(attackKey))
     {
         sword.PlayAttackAnimation();
     }
 }