Exemple #1
0
    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);
        }
    }
Exemple #2
0
 public void cs_pathTo(int x, int y)
 {
     context.RunRoutineFromLua(mapEvent.PathToRoutine(new Vector2Int(x, y)));
 }