Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        GameObject swapButton = GameObject.Find("Swap Button");

        //GameObject printSprite = GameObject.Find("BoolText");
        bButton  = swapButton.GetComponent <BoolButton>();
        old_bool = bButton.b;
    }
Exemplo n.º 2
0
        //CONSTRUCTORS
        public Menu(GraphicsDeviceManager graphics, ContentManager Content)
        {
            CurrentGameState = GameState.MainMenu;
            currentBoolButton = BoolButton.Rien;
            Quit = Content.Load<Texture2D>("BoutonQuitter");
            Jouer = Content.Load<Texture2D>("BoutonJouer");
            Option = Content.Load<Texture2D>("BoutonOption");

            #region load btn
            btnQuit = new Bouton(Quit, graphics.GraphicsDevice);
            btnQuit.setPosition(new Vector2(600 - (Quit.Width / 2) + 2, screenHeight / 2 + 150));

            btnOption = new Bouton(Option, graphics.GraphicsDevice);
            btnOption.setPosition(new Vector2(600 - (Option.Width / 2) + 2, screenHeight / 2 + 50));

            btnJouer = new Bouton(Jouer, graphics.GraphicsDevice);
            btnJouer.setPosition(new Vector2(600 - (Jouer.Width / 2) - 10, screenHeight / 2 - 50));
            #endregion
        }
Exemplo n.º 3
0
 public BoolButtonControl(BoolButton model)
 {
     InitializeComponent();
     _boolButton = model;
 }