Add StickGame Assets

This commit is contained in:
Dzejkobik007
2024-03-24 22:21:16 +01:00
parent 5a5812c0c7
commit 6c8b523d1f
6643 changed files with 596260 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UIElements;
public class InfoText : VisualElement
{
[UnityEngine.Scripting.Preserve]
public new class UxmlFactory : UxmlFactory<InfoText> { }
const string styleSheetPath = "Default";
const string ussInfoText = "InfoText";
Label label = new Label() { text = "Some text to fill this thing" };
public InfoText()
{
styleSheets.Add(Resources.Load<StyleSheet>(styleSheetPath));
AddToClassList(ussInfoText);
Add(label);
}
public void SetText(string text)
{
label.text = text;
}
}