Exemplo n.º 1
0
        private void OnDisable()
        {
            Log.I(this, "OnDisable");

            /// <summary>
            /// gameObject set Active false, coroutine will stop, if you do this,
            /// task will recycle immediately, if not task will recycle when scene change
            /// gameobject设置为false的时候,协程将停止运行,如果调用这个函数,CoroutineTask将会被立即回收,
            /// 如果不调用,CoroutineTask将在场景切换以后调用
            /// </summary>
            TaskHelper.CheckAndRecycle();
        }