public void StartGame() { Application.targetFrameRate = 60; GlobalCam.camWidth = globalCamWidth; // Sets the game camera GlobalCam.camHeigth = globalCamHeigth; GlobalCam.useRearCam = useRaerGlobalCam; // Use raer cam in this game GlobalCam.SetGlobalCam(); //if (showCamScript != null) // showCamScript.StartShowCam(); playerScript.cam = GlobalCam.gameCam; ResetLevel(); // Resets game variables StartCoroutine(OnGame()); }
void SetPlayCam() { GlobalCam.camWidth = globalCamWidth; GlobalCam.camHeigth = globalCamHeigth; GlobalCam.useRearCam = useRaerGlobalCam; GlobalCam.SetGlobalCam(); cam = GlobalCam.gameCam; ShowCam sc = GameObject.Find("Background").GetComponent <ShowCam>(); if (sc != null) { sc.StartShowCam(); } }