Example #1
0
        public CoroutineClass Begin_Dangled(GameObject mb, IEnumerator wanna_run, CoroutineClass.WhenDangledNotAcitve dangledisbleAction, int tag = 0)
        {
            CoroutineClass cc = new CoroutineClass(this, wanna_run);

            cc.myCoroutine = this;
            cc.tag         = tag;
            if (mb != null)
            {
                //dangling
                cc.DangledGameobject          = mb;
                cc.is_dangled_with_gameobject = true;
            }
            cc.DangledDisabledAction = dangledisbleAction;
            coroutineFirstRun(cc);
            return(cc);
        }
Example #2
0
 public static CoroutineClass PlayCoroutine(this GameObject g, IEnumerator coroutine, CoroutineClass.WhenDangledNotAcitve dangledisableAction = CoroutineClass.WhenDangledNotAcitve.Pause)
 {
     return(scCoroutine.Instance.Begin_Dangled(g, coroutine, dangledisableAction));
 }
Example #3
0
 public static CoroutineClass PlayCoroutine(this MonoBehaviour mb, IEnumerator coroutine, CoroutineClass.WhenDangledNotAcitve dangledisableAction = CoroutineClass.WhenDangledNotAcitve.Pause)
 {
     return(scCoroutine.Instance.Begin_Dangled(mb, coroutine, dangledisableAction));
 }