예제 #1
0
 public List <TD_Tile> Resolve(Vector3 arg_start, EnemyType arg_type)
 {
     if (map_ == null)
     {
         map_ = this.GetComponent <TD_Map>();
     }
     delta = 0.49f;
     return(ResolveAStar(GetTileByPosition(new Vector3(arg_start.x, 0f, arg_start.z)), map_.destination_, arg_type));
 }
예제 #2
0
 private void Awake()
 {
     directory_      = Application.dataPath + "/Maps";
     full_file_path_ = directory_ + "/" + file_name_;
     map_            = this.GetComponent <TD_Map>();
 }
예제 #3
0
 // Start is called before the first frame update
 void Start()
 {
     map_  = this.GetComponent <TD_Map>();
     delta = 0.49f;
 }