void Start() { // THIS MAY NEED TO COME OUT AND BE REPLACED WITH A PROPER EXIT BUTTON //Screen.fullScreen = false; #if !(UNITY_IOS || UNITY_ANDROID) socialOpts.SetActive(false); exitBtn.SetActive(false); #endif persistorObj = GameObject.Find("Persistor"); audioCtrl = persistorObj.GetComponent <AudioController>(); adCtrl = persistorObj.GetComponent <AdController>(); socCtrl = persistorObj.GetComponent <SocialController>(); adLaunched = false; blinker = GetComponent <BlinkerController>(); audioS = GetComponent <AudioSource> (); AudioListener.volume = audioCtrl.CurrVolume; volSlider.value = audioCtrl.CurrVolume; uiButtons = GetComponentsInChildren <Button>(); Reset(); state = TitleScreenState.none; angle = 0.0f; }
void Start() { flipsRoundTxt = flipsRoundTxtObj.GetComponent <Text>(); scoreRoundTxt = scoreRoundTxtObj.GetComponent <Text>(); comboRoundHighTxt = comboRoundHighTxtObj.GetComponent <Text>(); persistorObj = GameObject.Find("Persistor"); socCtrl = persistorObj.GetComponent <SocialController>(); blinker = GetComponent <BlinkerController>(); //uiButtons = GetComponentsInChildren<Button>(); //PlayGamesPlatform.DebugLogEnabled = true; //PlayGamesPlatform.Activate(); }