Beispiel #1
0
    public static void OpenSceneCamera()
    {
#if UNITY_ANDROID
        //Debug.Log("OpenSceneCamera");
        PlayerCameraComponent playerCamera = CameraBase.GetInstance() as PlayerCameraComponent;
        if (playerCamera != null)
        {
            playerCamera.GetComponent <Camera>().enabled = true;
        }
#endif
    }
Beispiel #2
0
    public static void SwitchToPlayerCamera(bool isFull)
    {
#if UNITY_ANDROID
        //Debug.LogFormat("SwitchToPlayerCamera({0})", isFull);
        if (!isFull)
        {
            return;
        }
        PlayerCameraComponent playerCamera = CameraBase.GetInstance() as PlayerCameraComponent;
        if (playerCamera != null)
        {
            playerCamera.GetComponent <Camera>().enabled = true;
        }

        //if (UICamera.currentCamera)
        //	UICamera.currentCamera.enabled = false;
        //else
        //{
        //	if (UICamera.current)
        //		UICamera.current.cachedCamera.enabled = false;
        //}
#endif
    }