Delete() 공개 메소드

Call Delete() before destroying this component or the GameObject to which it is attached. Memory leaks can ensue otherwise.
public Delete ( ) : void
리턴 void
예제 #1
0
 public override void Release()
 {
     base.Release();
     if (EZGUI_SpriteText)
     {
         EZGUI_SpriteText.Delete();
         DestroyImmediate(EZGUI_SpriteText);
     }
 }
예제 #2
0
 public override void Release()
 {
     base.Release();
     if (EZGUI_SpriteTextFront)
     {
         EZGUI_SpriteTextFront.Delete();
         DestroyImmediate(EZGUI_SpriteTextFront);
     }
     if (EZGUI_SpriteTextBack)
     {
         EZGUI_SpriteTextBack.Delete();
         DestroyImmediate(EZGUI_SpriteTextBack);
     }
     if (EZGUI_Button)
     {
         EZGUI_Button.Delete();
         DestroyImmediate(EZGUI_Button);
     }
 }