Initial Commit
This commit is contained in:
22
Assets/Scripts/Unit.cs
Normal file
22
Assets/Scripts/Unit.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user