Esempio n. 1
0
    /*
     * Build BackGround Elemnts, Info Panel, Dice -  and Add it all on gameplay
     * */
    void BuildBAckGround()
    {
        backGround = new GraphickObject();
        backGround.Build(this.gameObject, "BackGround");
        backGround.setImage(blackSquare);
        backGround.setScale(new Vector3(7, 7, 0));

        whiteCenter = new GraphickObject();
        whiteCenter.Build(this.gameObject, "WhiteCenter");
        whiteCenter.setImage(WhiteSquare);
        whiteCenter.setScale(new Vector3(4.75f, 4.75f, 0));
        whiteCenter.SetLayer(1);

        panel.Build(whiteCenter.GetGameObject());
        panel.ActiviteActivate(false);
        panel.SetPlayerInfo(player_model);
        panel.SetPlayerInfo(ai_model);
        dicer.Build(whiteCenter.GetGameObject());
        dicer = dicer.GetDice;
    }