public void path(int x, int y, bool wait = false) { var routine = mapEvent.PathToRoutine(new Vector2Int(x, y)); if (wait) { context.RunRoutineFromLua(routine); } else { mapEvent.StartCoroutine(routine); } }
public void cs_pathTo(int x, int y) { context.RunRoutineFromLua(mapEvent.PathToRoutine(new Vector2Int(x, y))); }