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