示例#1
0
        protected virtual void OnDisable()
        {
            Log.Trace("OnDisable");

            if (_render.IsValid)
            {
                _render.Dispose();
            }
        }
示例#2
0
            public void Reset()
            {
                _totalLifetime     = 0;
                _remainingLifetime = 0;
                AgeingRate         = 1;

                if (_render.IsValid)
                {
                    _render.Dispose();
                }
            }