Пример #1
0
    private void Start()
    {
        bikeRig = GetComponentInChildren <rigAllocateThisplayerPairSettingsToBars>();
        bikeRig.setupTheRigVoltBars();

        //OpenMyArduinoStream();
    }
Пример #2
0
 private void Start()
 {
     bikeRig = GetComponentInChildren <rigAllocateThisplayerPairSettingsToBars>();
     bikeRig.setupTheRigVoltBars();
     backgroundSoundScript = GetComponentInChildren <backgroundSound>();
     backgroundSoundScript.playEventSetupSpound();
     //OpenMyArduinoStream();
 }
Пример #3
0
    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;
    }