Пример #1
0
 public void UnsubscribeFunction(object sender, EventPublisher_NonStatic.OnReturnPressedEventArgs e)
 {
     // alternate version that takes the custom event args for OnReturnPressed
     Debug.Log("UnsubscribeFunction triggered by " + sender +
               ".  Now unsubscribing this func from OnReturn and should not come up again.");
     publisher.OnReturnPressed -= UnsubscribeFunction;
 }
Пример #2
0
 public void ActionFunction(bool b, int i, EventPublisher_NonStatic.OnReturnPressedEventArgs e)
 {
     Debug.Log("ActionFunction triggered. Bool = " + b + ", Int = " + i + ", Return count = " + e.returnPressedCount);
 }
Пример #3
0
 public void OtherClassFunction(object sender, EventPublisher_NonStatic.OnReturnPressedEventArgs e)
 {
     // alternate version that takes the custom event args for OnReturnPressed
     Debug.Log("OtherClassFunction triggered by " + sender + ".  Return count = " + e.returnPressedCount);
 }