예제 #1
0
    public void OnPointerClick(PointerEventData pointerEventData)
    {
        Debug.Log("x: " + x + ", y: " + y);

        if (createMap.spawningPawnsMode && (stationingPawn == null))
        {
            createMap.SpawnUnit(this.x, this.y);
        }

        if (stationingPawn != null)
        {
            createMap.SelectPawn(stationingPawn, this.x, this.y);
        }
    }