Files
TutorialRTS/Assets/Scripts/SelectionMarker.cs

22 lines
437 B
C#
Raw Permalink Normal View History

2026-03-19 11:57:23 +00:00
using UnityEngine;
public class SelectionMarker : MonoBehaviour
{
2026-03-19 17:31:51 +00:00
public float lifeTime = 1.0f;
2026-03-19 11:57:23 +00:00
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
2026-03-19 17:31:51 +00:00
//Destroy(gameObject, lifeTime);
2026-03-19 11:57:23 +00:00
}
// Update is called once per frame
void Update()
{
}
2026-03-19 17:31:51 +00:00
public void DestroySelectionMarker()
{
Destroy(gameObject);
}
2026-03-19 11:57:23 +00:00
}