public void Dealloc() { if (textTexture != null) { textTexture.Dealloc(); textTexture = null; } if (unityText != null) { unityText.Dealloc(); unityText = null; } if (dimZob != null) { dimZob.Dealloc(); dimZob = null; } if (backdrop != null) { backdrop.Dealloc(); backdrop = null; } if (text != null) { text.Dealloc(); text = null; } for (int i = 0; i < (int)QueryButton.kNumButtonsOnQuery; i++) { if (button[i] != null) { button[i].Dealloc(); button[i] = null; } } for (int i = 0; i < (int)Enum.kMaxFunnyWordsInQuery; i++) { if (funnyWord[i] != null) { funnyWord[i].Dealloc(); funnyWord[i] = null; } } for (int i = 0; i < (int)Enum.kMaxCentralButtonsInQuery; i++) { if (buttonText[i] != null) { buttonText[i].Dealloc(); buttonText[i] = null; } } }
// public FrontEndButton() // { // return this.init(0); // } public void Dealloc() { if (zobjectLabel != null) { zobjectLabel.Dealloc(); zobjectLabel = null; } if (hangingButton != null) { hangingButton.Dealloc(); hangingButton = null; } if (zobject != null) { zobject.Dealloc(); zobject = null; } }