public virtual void Clear() { SpritedString textLineComponent = null; GameObject textLineObject = null; if (textLineComponents != null) { for (int i = 0; i < textLineComponents.Length; i++) { textLineComponent = textLineComponents[i]; if (textLineComponent != null) { textLineComponent.Clear(); textLineComponents[i] = null; } } textLineComponents = null; } if (textLineObjects != null) { for (int i = 0; i < textLineObjects.Length; i++) { textLineObject = textLineObjects[i]; if (textLineObject != null) { Destroy(textLineObject); textLineObjects[i] = null; } } textLineObjects = null; } if (textLines != null) { for (int i = 0; i < textLines.Length; i++) { textLines[i] = null; } textLines = null; } textLinesReady = false; text = null; boxSprite = null; boxRenderer = null; if (boxObject != null) { Destroy(boxObject); boxObject = null; } symbolDatabase = null; built = false; cleared = true; }
protected override void AdjustTextLines() { GameObject textLineObject = null; SpritedString textLineComponent = null; if (speakerName != null) { textLineObject = new GameObject("NameLineObject"); textLineComponent = textLineObject.AddComponent <SpritedString>(); textLineComponent.SetSymbolSource(symbolDatabase); textLineComponent.SetValue(speakerName); textLineComponent.SetColor(new Color(0.7f, 0f, 0f)); if (!AddExtraTextLine(textLineComponent, true)) { textLineComponent.Clear(); Destroy(textLineObject); } } }
public override void Clear() { if (gaugeComponent != null) { gaugeComponent.Clear(); gaugeComponent = null; } if (gaugeObject != null) { Destroy(gaugeObject); gaugeObject = null; } if (stepLineComponent != null) { stepLineComponent.Clear(); stepLineComponent = null; } if (stepLineObject != null) { Destroy(stepLineObject); stepLineObject = null; } base.Clear(); }