コード例 #1
0
ファイル: eneattack.cs プロジェクト: abishek-17/games
 public void attackhit()
 {
     if (target == null)
     {
         return;
     }
     target.takedamage(damage);
     target.GetComponent <damdis>().showdamage();
 }
コード例 #2
0
 public void attackhitevent()
 {
     if (target == null)
     {
         return;
     }
     else
     {
         target.GetComponent <bloodsplash>().showsplatter();
         target.attack(damage);
     }
 }