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