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; }
public void ActionFunction(bool b, int i, EventPublisher_NonStatic.OnReturnPressedEventArgs e) { Debug.Log("ActionFunction triggered. Bool = " + b + ", Int = " + i + ", Return count = " + e.returnPressedCount); }
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); }