コード例 #1
0
        public static GameObject OnLateUpdate(this GameObject gameObject, ActionOnLateUpdate.Properties p)
        {
            // Add the component
            ActionOnLateUpdate.AddComponent(gameObject, p);

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