Пример #1
0
        public void Start()
        {
            match = MatchController.GetInstance();

            PlayerSettings.Setup(PlayerID.Player1, P1Mode);
            PlayerSettings.Setup(PlayerID.Player2, P2Mode);
        }
Пример #2
0
        public void Start()
        {
            match = MatchController.GetInstance();

            playerNames[PlayerID.Player1] = "Flan";
            playerNames[PlayerID.Player2] = "Gump";

            var template = GetComponentInChildren <Text>(true);

            // Setup object pool
            for (int i = 0; i < 4; i++)
            {
                GameObject.Instantiate(template.gameObject, transform);
            }

            Texts = GetComponentsInChildren <Text>(true);
        }