// Use this for initialization void Start() { window = GameObject.Find("ChatWindow"); net = gameObject.GetComponent <NetworkConnectionP2P>(); chatContent = GameObject.Find("ChatContent").GetComponent <RectTransform>(); chatLine = GameObject.Find("Chat Line").GetComponent <Text>(); chatLine.gameObject.SetActive(false); inputField = GameObject.Find("ChatInput").GetComponent <InputField>(); chatScroll = GameObject.Find("Scroll View").GetComponent <ScrollRect>(); window.SetActive(false); }
// Use this for initialization void Start() { Screen.SetResolution(1600, 900, false); net = GetComponent <NetworkConnectionP2P>(); NetPanel = GameObject.Find("NetPanel"); MaxPlayer = GameObject.Find("PlayerCount").GetComponent <Text>(); SelectedPlayer = GameObject.Find("SelectedPlayer").GetComponent <Text>(); ResetButton = GameObject.Find("Reset"); GameSetupPanel = GameObject.Find("GameSetupPanel"); GamePanel = GameObject.Find("GamePanel"); GamePanel.SetActive(false); }
// Use this for initialization void Start() { UIPanel = GetComponent <UIManager>(); net = gameObject.GetComponent <NetworkConnectionP2P>(); }