Scriptum/Assets/_/Stuff/GridPathfinding/LastMoveTo.cs
2022-11-07 22:18:28 +01:00

41 lines
1.2 KiB
C#

/*
------------------- Code Monkey -------------------
Thank you for downloading this package
I hope you find it useful in your projects
If you have any questions let me know
Cheers!
unitycodemonkey.com
--------------------------------------------------
*/
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
//using myNameSpace;
namespace GridPathfindingSystem {
public class LastMoveTo {
public List<MapPos> mapPos;
public GridPathfinding.UnitMovementCallbackType callbackType;
public object obj;
public UnitMovement.PathCallback callback;
public LastMoveTo(List<MapPos> _mapPos, GridPathfinding.UnitMovementCallbackType _callbackType, object _obj, UnitMovement.PathCallback _callback) {
mapPos = _mapPos;
callbackType = _callbackType;
obj = _obj;
callback = _callback;
}
public LastMoveTo(MapPos _mapPos, GridPathfinding.UnitMovementCallbackType _callbackType, object _obj, UnitMovement.PathCallback _callback) {
mapPos = new List<MapPos>() { _mapPos };
callbackType = _callbackType;
obj = _obj;
callback = _callback;
}
}
}