Example #1
0
        IEnumerator _executeOnTimer()
        {        //Debug.Log( "wait time " + t + " " + mevent );
            yield return(new WaitForSeconds(waitTime));

            behavior();

            MEventMaster.notifyDestruct();
        }
Example #2
0
        public override void execute()
        {
            if (waitTime > 0.0f)
            {
                GM.startCoroutine(_executeOnTimer());
            }
            else
            {
                behavior();

                MEventMaster.notifyDestruct();
            }
        }