Files
TutorialRTS/Assets/Scripts/Unit.cs

23 lines
451 B
C#
Raw Normal View History

2026-03-19 11:57:23 +00:00
using UnityEngine;
public class Unit : MonoBehaviour
{
[Header("Components")]
public GameObject selectionVisual;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void ToggleSelectionVisual(bool selected)
{
selectionVisual.SetActive(selected);
}
}