pruned scripts
This commit is contained in:
21
Assets/Scripts/CommonScripts/TipManager.cs
Normal file
21
Assets/Scripts/CommonScripts/TipManager.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user