34 lines
685 B
C#
34 lines
685 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class PlayerEntity : Entity
|
|
{
|
|
public bool hasMoved = false;
|
|
public bool hasAttacked = false;
|
|
private List<TileObject> moveableTiles = new();
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
public void SkipTurn()
|
|
{
|
|
hasMoved = true;
|
|
hasAttacked = true;
|
|
TurnHandler.instance.UpdateTurns();
|
|
}
|
|
private void OnMouseDown()
|
|
{
|
|
if (!hasMoved && !PlayerEntityMovement.instance.isMoving)
|
|
{
|
|
PlayerEntityMovement.instance.SelectEntity(this);
|
|
SkipTurn();
|
|
}
|
|
}
|
|
}
|