Files
TutorialRTS/Assets/Scripts/Player.cs
2026-03-19 11:57:23 +00:00

26 lines
518 B
C#

using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
public class Player : MonoBehaviour
{
[Header("Units")]
public List<Unit> units = new List<Unit>();
// 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()
{
}
//is this my unit?
public bool IsMyUnit(Unit unit)
{
return units.Contains(unit);
}
}