Exemplo n.º 1
0
 public Damage(int amount, DamageInstigator instigator)
 {
     this.Amount     = amount;
     this.Instigator = instigator;
 }
Exemplo n.º 2
0
 public void WhenPossessedBy(DamageInstigator instigator)
 {
     this.instigator = instigator;
 }
Exemplo n.º 3
0
 public static void SetInstigatorForDamageSubsystemComponents(GameObject gameObject, DamageInstigator instigator)
 {
     foreach (IDamageSubsystemComponent component in gameObject.GetComponents <IDamageSubsystemComponent>())
     {
         component.Instigator = instigator;
     }
 }