Example #1
0
            public void Execute(params object[] parameters)
            {
                if (parameters == null || parameters.Length < 2)
                {
                    throw new System.ArgumentOutOfRangeException();
                }

                MonoBehaviour component  = parameters[0] as MonoBehaviour;
                string        methodName = parameters[1] as string;

                if (component == null || methodName == null)
                {
                    throw new System.ArgumentNullException();
                }

                if (result == null)
                {
                    result           = new FaderCoroutine();
                    result.coroutine = component.StartCoroutine(methodName);
                }

                Completed = true;
            }
Example #2
0
            public void Execute(params object[] parameters)
            {
                if (parameters == null || parameters.Length < 2)
                {
                    throw new System.ArgumentOutOfRangeException();
                }

                MonoBehaviour component = parameters[0] as MonoBehaviour;

                System.Collections.IEnumerator routine = parameters[1] as System.Collections.IEnumerator;

                if (component == null || routine == null)
                {
                    throw new System.ArgumentNullException();
                }

                if (result == null)
                {
                    result           = new FaderCoroutine();
                    result.coroutine = component.StartCoroutine(result.IntCoroutine(routine));
                }

                Completed = result.Completed;
            }