public override void DrawGUIOverlay() { float a = 1f - (base.AgeSecs - this.TimeBeforeStartFadeout) / this.def.mote.fadeOutTime; Color color = new Color(this.textColor.r, this.textColor.g, this.textColor.b, a); GenMapUI.DrawText(new Vector2(this.exactPosition.x, this.exactPosition.z), this.text, color); }
public override void DrawGUIOverlay() { float a = 1f - (base.AgeSecs - TimeBeforeStartFadeout) / def.mote.fadeOutTime; GenMapUI.DrawText(textColor: new Color(textColor.r, textColor.g, textColor.b, a), worldPos: new Vector2(exactPosition.x, exactPosition.z), text: text); }