player movement
This commit is contained in:
parent
01a1278465
commit
46d2b7bc95
18 changed files with 1415 additions and 34 deletions
22
Assets/Scripts/TileObject.cs
Normal file
22
Assets/Scripts/TileObject.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class TileObject : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private GameObject highlight;
|
||||
public List<TileObject> neighbors = new();
|
||||
public SpriteRenderer sprite;
|
||||
[Header("Status")]
|
||||
public bool blocked = false;
|
||||
public bool hasUnit = false;
|
||||
private void OnMouseEnter()
|
||||
{
|
||||
//highlight.SetActive(true);
|
||||
}
|
||||
|
||||
private void OnMouseExit()
|
||||
{
|
||||
//highlight.SetActive(false);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue