20 lines
392 B
C#
20 lines
392 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class GridCell : MonoBehaviour
|
|
{
|
|
private BuildManager manager;
|
|
private Vector2Int position;
|
|
|
|
public void Init(BuildManager mgr, Vector2Int pos)
|
|
{
|
|
manager = mgr;
|
|
position = pos;
|
|
}
|
|
|
|
private void OnMouseDown()
|
|
{
|
|
// manager.place_building(position);
|
|
}
|
|
} |