// initialize worker with AStar tile pos public void Init(BEWorkerManager _Manager, int x, int z) { Manager = _Manager; AStar = Manager.AStar; vDir = new Vector3(0, 0, 1); SetPosition(x, z); }
void Awake() { instance = this; }