Ejemplo n.º 1
0
    public void Transition(SelectContext.States state, SelectContext.SelectAction action)
    {
        this.state  = state;
        this.action = action;

        if ((this.move_area != null) && (SelectContext.States.MOVE != state))
        {
            /* TODO: probably pass selector the prev move_area to cleanup */
            this.selector.HighlightMoveableSquares(null);
            this.move_area = null;
        }
    }
Ejemplo n.º 2
0
    public SelectContext(PrefabCache prefab_cache,
                         SelectContext.States state,
                         SelectContext.SelectAction action)
    {
        this.selector      = new USquareGridSelector(prefab_cache);
        this.move_area     = null;
        this.prev_square   = null;
        this.input_enabled = true;


        this.state  = state;
        this.action = action;
    }