Files
fracturepoint/Assets/Scripts/CommonScripts/TipManager.cs
2026-01-19 09:52:06 -07:00

22 lines
352 B
C#

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