Exemplo n.º 1
0
 protected IEnumerator CallAfterTimeCoroutine <T1>(MethodOneParam <T1> method, T1 p1, float sec)
 {
     if (sec > 0)
     {
         yield return(new WaitForSeconds(sec));
     }
     method(p1);
 }
Exemplo n.º 2
0
        private string _name; // first field will be showed in inspector

        #endregion Fields

        #region Constructors

        public ObjectCrtn(MethodOneParam<ObjectCrtn> onEnd, IEnumerator coroutineEnumerator, MethodExceptionParam onException, GameObject obj, ObjectCrtn parentCoroutine)
        {
            _onException = onException;
            _onEnd = onEnd;
            _gameObject = obj;
            _name = "NOT STARTED YET";

            ParentCoroutine = parentCoroutine;
            CoroutineEnumerator = coroutineEnumerator;

            if (parentCoroutine != null)
                parentCoroutine.SetChild(this);
        }
Exemplo n.º 3
0
        public ObjectCrtn(MethodOneParam <ObjectCrtn> onEnd, IEnumerator coroutineEnumerator, MethodExceptionParam onException, GameObject obj, ObjectCrtn parentCoroutine)
        {
            _onException = onException;
            _onEnd       = onEnd;
            _gameObject  = obj;
            _name        = "NOT STARTED YET";

            ParentCoroutine     = parentCoroutine;
            CoroutineEnumerator = coroutineEnumerator;

            if (parentCoroutine != null)
            {
                parentCoroutine.SetChild(this);
            }
        }
Exemplo n.º 4
0
 public ObjectRetCrtn(MethodOneParam <ObjectCrtn> onEnd, IEnumerator enumerator, MethodExceptionParam onException, GameObject obj, ObjectCrtn parent) : base(onEnd, enumerator, onException, obj, parent)
 {
 }