Beispiel #1
0
        void Start()
        {
            //Debug.Log("Game mode: " + GameManager.Instance.mode.ToString());
            diceController = dice.GetComponent <GameDiceController>();
            ludoController = GameObject.Find("GameSpecific").GetComponent <LudoGameController>();
            rect           = GetComponent <RectTransform>();
            initScale      = rect.localScale;
            initPosition   = rect.anchoredPosition;
            GetComponent <Button>().interactable = false;

            if (GameManager.Instance.mode == MyGameMode.Master)
            {
                canMakeJoint = true;
            }
        }
        // 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);
        }
Beispiel #3
0
 void Start()
 {
     button              = GetComponent <Button>();
     controller          = LudoController.GetComponent <LudoGameController>();
     button.interactable = false;
 }