Files
fracturepoint/Assets/Scripts/CommonScripts/TipManager.cs
2026-01-19 10:41:03 -07:00

20 lines
312 B
C#

using Godot;
using System;
using System.Collections.Generic;
public partial class TipManager : RichTextLabel
{
string[] TipList =
{
"Example Tip"
};
public override void _Ready()
{
// Get random tip and change the text to that
GD.Randomize();
Text = TipList[GD.Randi() % TipList.Length];
}
}