Beispiel #1
0
        public static GameObject OnFixedUpdate(this GameObject gameObject, ActionOnFixedUpdate.Properties p)
        {
            // Add the component
            ActionOnFixedUpdate.AddComponent(gameObject, p);

            // Return to fluent design
            return(gameObject);
        }
Beispiel #2
0
        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);
        }