コード例 #1
0
 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());
 }
コード例 #2
0
    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();
        }
    }