Beispiel #1
0
 public void Trigger()
 {
     if (Event != null)
     {
         var args = new TestArgs {
             Arg = "Testing"
         };
         Event(this, args);
     }
 }
Beispiel #2
0
 private void OnEvent(object sender, TestArgs args)
 {
     Debug.Log(args.Arg);
 }