Пример #1
0
 public void hurt(BaseGameplay g, Attack atk)
 {
     if (g != null)
     {
         g.receive(atk, this);
     }
 }
Пример #2
0
 public void onCollide(BaseGameplay theOther)
 {
     //exemple :
     //Attack atk = new Attack();
     //this.hurt(theOther, atk)
     //Quand cet objet heurte ou est heurté, il inflige des dégats
 }
Пример #3
0
 public void interact(Interaction i, BaseGameplay g)
 {
 }
Пример #4
0
 public void receive(Attack atk, BaseGameplay g)
 {
 }