gather-and-defend/Assets/Scripts/UnitPlacementButton.cs
Felix Boucher 8dc77e1772 enlevé besoin d'un placeholder statique par unit
problème : créer un placeholder par unit allait être un sale hassle

solution : maintenant, le placeholder est créé dynamiquement

note : also, j'ai ajouté un système pour ajouter des tiles
2023-06-08 23:14:07 -04:00

14 lines
319 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public abstract class UnitPlacementButton : MonoBehaviour, IPointerDownHandler
{
public void OnPointerDown(PointerEventData eventData)
{
Place();
}
protected abstract void Place();
}