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