private void Start() { bikeRig = GetComponentInChildren <rigAllocateThisplayerPairSettingsToBars>(); bikeRig.setupTheRigVoltBars(); //OpenMyArduinoStream(); }
private void Start() { bikeRig = GetComponentInChildren <rigAllocateThisplayerPairSettingsToBars>(); bikeRig.setupTheRigVoltBars(); backgroundSoundScript = GetComponentInChildren <backgroundSound>(); backgroundSoundScript.playEventSetupSpound(); //OpenMyArduinoStream(); }
void OnSceneLoaded(Scene scene, LoadSceneMode mode) { bikeRig.setupTheRigVoltBars(); //seems daft to have to refeed it in stage = 0; gameActive = false; // Debug.Log("spawnpoints is " + GameObject.Find("SpawnPoints")); spawner = GameObject.Find("SpawnPoints"); // may do this in player setup too dont want to double up // Debug.Log("spawner ship count is " + spawner.GetComponent<shipCounts>()); spawner.GetComponent <shipCounts>().enabled = false; fourthRectFor3playerCam = GameObject.Find("temp3Player4thRectCam").GetComponentInChildren <Camera>(); fourthRectFor3playerCam.enabled = false; }