Пример #1
0
        public static IEnumerator CallAfterWaitForFixedUpdate <T1, T2>(this MonoBehaviour self, System.Action <T1, T2> action, T1 arg1, T2 arg2)
        {
            yield return(new WaitForFixedUpdate());

            action.Call(arg1, arg2);
        }
Пример #2
0
        public static IEnumerator CallAfterWaitForFixedUpdate(this MonoBehaviour self, System.Action action)
        {
            yield return(new WaitForFixedUpdate());

            action.Call();
        }
Пример #3
0
        public static IEnumerator CallAfterWaitForSecondsRealtime <T1, T2, T3, T4>(this MonoBehaviour self, float seconds, System.Action <T1, T2, T3, T4> action, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
        {
            yield return(new WaitForSecondsRealtime(seconds));

            action.Call(arg1, arg2, arg3, arg4);
        }
Пример #4
0
        public static IEnumerator CallAfterWaitForSecondsRealtime <T>(this MonoBehaviour self, float seconds, System.Action <T> action, T arg)
        {
            yield return(new WaitForSecondsRealtime(seconds));

            action.Call(arg);
        }
Пример #5
0
        public static IEnumerator CallAfterWaitForSeconds <T1, T2>(this MonoBehaviour self, float seconds, System.Action <T1, T2> action, T1 arg1, T2 arg2)
        {
            yield return(new WaitForSeconds(seconds));

            action.Call(arg1, arg2);
        }
Пример #6
0
        // ----------------------------------------------------------------
        // Method
        // ----------------------------------------------------------------
        public static IEnumerator CallAfterWaitForSeconds(this MonoBehaviour self, float seconds, System.Action action)
        {
            yield return(new WaitForSeconds(seconds));

            action.Call();
        }