コード例 #1
0
 public IEnumerator PlayDieAfterBangAnimation(GameObject gameObject, Action postAction = null)
 {
     if (PlayerAnimator.HasUser(gameObject) || EnemyAnimator.HasUser(gameObject))
     {
         CmdPlayDieAfterBangAnimation(gameObject);
         yield return(new WaitForSeconds(6f));
     }
     if (postAction != null)
     {
         postAction();
     }
 }