Destroy() public method

public Destroy ( ) : void
return void
Esempio n. 1
0
        void OnDestroy()
        {
#if UNITY_EDITOR
            if (_fullBodyIK != null)
            {
                _fullBodyIK.Destroy();
            }
#endif
        }
Esempio n. 2
0
 protected virtual void OnDestroy()
 {
     if (_cache_fullBodyIK == null)
     {
         _cache_fullBodyIK = fullBodyIK;
     }
     if (_cache_fullBodyIK != null)
     {
         _cache_fullBodyIK.Destroy();
     }
 }