示例#1
0
        private void DownButton()
        {
            if (GUI.Button(
                    RectsLib.RectByCenterAndSize(
                        controlCenter + Vector2.up * FutureGamesLib.Constants.UI.margin * 2.5f,
                        FutureGamesLib.Constants.UI.RectSize * 0.5f), "Down") == false)
            {
                return;
            }

            commandInvoker.AddCommand(new MoveCommand(transform, Vector3.down));
        }
示例#2
0
        private void LeftButton()
        {
            if (GUI.Button(
                    RectsLib.RectByCenterAndSize(
                        controlCenter + Vector2.left * FutureGamesLib.Constants.UI.margin * 3f,
                        FutureGamesLib.Constants.UI.RectSize * 0.5f), "Left") == false)
            {
                return;
            }

            commandInvoker.AddCommand(new MoveCommand(transform, Vector3.left));
        }
    private void RemakeWorldButton()
    {
        if (GUI.Button(
                RectsLib.RectByCenterAndSize(
                    controlCenter + Vector2.down * FutureGamesLib.Constants.UI.margin * 2.5f,
                    FutureGamesLib.Constants.UI.RectSize * 0.9f), "Remake Tiles") == false)
        {
            return;
        }

        CreateTiles();
    }