public void CarryChaos() { ApocalypsisEventArgs args = new ApocalypsisEventArgs(); Console.WriteLine("*earthquake, million demons began carry the chaos in the name of Satan*"); args.Damage = 10; OnApocalypsisBegan(args); }
protected virtual void OnApocalypsisBegan(ApocalypsisEventArgs e) { if (ApocalypsisEvent != null) ApocalypsisEvent(this, e); }
public virtual void React(ApocalypsisEventArgs e) { Console.WriteLine("{0}: We'll gonna die!", this.Name); }
public static void ReactionOfAnimals(object sender, ApocalypsisEventArgs e) { react(e); }