99
edits
(Update for 200.43 MinEvent Handling, add Custom section) |
m (creating -> create) |
||
Line 182: | Line 182: | ||
// A static helper method to fire our event on a GameObject. | // A static helper method to fire our event on a GameObject. | ||
// If it's a high-frequency event this should implement event pooling, rather than | // If it's a high-frequency event this should implement event pooling, rather than create a new MyCustomMinEvent each time. | ||
public static void Send(GameObject Object) { | public static void Send(GameObject Object) { | ||
if (Object.WantEvent(MyCustomMinEvent.ID, MinEvent.CascadeLevel)) { | if (Object.WantEvent(MyCustomMinEvent.ID, MinEvent.CascadeLevel)) { |