예제 #1
0
 // Construction/Destruction
 public void Destroy()
 {
     if (preview != null)
     {
         preview.Destroy();
     }
     if (_animator != null)
     {
         Object.DestroyImmediate(_animator.gameObject);
     }
 }
 // Construction/Destruction
 public void Destroy()
 {
     if (preview != null)
     {
         preview.Destroy();
     }
     if (sprite != null)
     {
         Object.DestroyImmediate(sprite.gameObject);
     }
 }