public static GameObject OnLateUpdate(this GameObject gameObject, ActionOnLateUpdate.Properties p) { // Add the component ActionOnLateUpdate.AddComponent(gameObject, p); // Return to fluent design return(gameObject); }
public static GameObject OnLateUpdate(this GameObject gameObject, Action action) { // Add the component ActionOnLateUpdate.AddComponent(gameObject, new ActionOnLateUpdate.Properties { enable = true, onLateUpdate = action }); // Return to fluent design return(gameObject); }