Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        // Scale gameboard


        float scalerWidth = gameBoardScaler.GetComponent <RectTransform>().rect.size.x;
        float boardWidth  = gameBoard.GetComponent <RectTransform>().rect.size.x;

        gameBoard.GetComponent <RectTransform>().localScale = new Vector2(scalerWidth / boardWidth, scalerWidth / boardWidth);

        gUIController = GameGui.GetComponent <GameGUIController>();
    }
Exemplo n.º 2
0
        // Use this for initialization
        void Start()
        {
            if (Instance == null)
            {
                Instance = this;
            }
            // Scale gameboard


            // float scalerWidth = gameBoardScaler.GetComponent<RectTransform>().rect.size.x;
            // float boardWidth = gameBoard.GetComponent<RectTransform>().rect.size.x;

            // gameBoard.GetComponent<RectTransform>().localScale = new Vector2(scalerWidth / boardWidth, scalerWidth / boardWidth);

            gUIController = GameGui.GetComponent <GameGUIController>();

            dice1Move.interactable   = false;
            dice2Move.interactable   = false;
            diceSumMove.interactable = false;
            arrowForScore.SetActive(false);
        }
Exemplo n.º 3
0
 void Awake()
 {
     instanse = this;
 }