45 lines
745 B
C#
45 lines
745 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class aa : MonoBehaviour
|
|
{
|
|
public TargetElementFinder TargetElementFinder;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|
|
[System.Serializable]
|
|
public class TargetElementFinder
|
|
{
|
|
public FindTargetType Type;
|
|
public string Id;
|
|
public Coordinate SelfRange;
|
|
public List<Coordinate> TileRange;//¼¯ºÏ
|
|
}
|
|
|
|
public enum FindTargetType
|
|
{
|
|
Self = 0,
|
|
Target = 1,
|
|
Player = 2,
|
|
Range = 3,
|
|
Global = 4,
|
|
SelfRange = 5,
|
|
}
|
|
|
|
[System.Serializable]
|
|
public struct Coordinate
|
|
{
|
|
public int X;
|
|
public int Y;
|
|
}
|