Пример #1
0
    float _refreshSubtitlesFreq      = 0.1f; // with this frequency subtitles shows on display while subtitles playing backwards.

    // ----------------------------------------------------------------------------------------

    // *** Stats start method.
    // *** Start is called before the first frame update only if the script instance is enabled.
    // *** Starts initialization.
    void Start()
    {
        // Disable both settings characters on application start.
        normSettings.SetActive(false);
        fadedSettings.SetActive(false);

        // Disable subtitles on  application start.
        japaneseSubtitlesObj.SetActive(false);
        englishSubtitlesObj.SetActive(false);
        // -----------------------------------------------

        // Enable opening animation on application start.
        openingAnimationObj.SetActive(true);
        // -----------------------------------------------

        // Disable ending animation on application start.
        endingJapAnimationObj.SetActive(false);
        endingEngAnimationObj.SetActive(false);
        // -----------------------------------------------

        // Disable last clip opening animation on application start.
        lastClipOpeningAnimationObj.SetActive(false);
        // -----------------------------------------------

        // Disable clock bong on application start.
        clockBongObj.SetActive(false);

        snapShot = GameObject.FindObjectOfType <CaptureAndSave>();
    }
Пример #2
0
    void Start()
    {
#if (UNITY_ANDROID && !UNITY_EDITOR)
        Screen.fullScreen = false;
#endif
        _captureAndSave = GameObject.FindObjectOfType <CaptureAndSave>();
        _SetupUI();
        _SetupWebcamTexture();
    }
Пример #3
0
 void Start()
 {
     snapShot       = GameObject.FindObjectOfType <CaptureAndSave>();
     screenShotMger = GameObject.FindObjectOfType <ScreenShotMger>();
     // Build path name for Android
     screenShotDirectory = "/storage/emulated/0/Pictures/";
     screenShotAblumName = snapShot.ALBUM_NAME;
     Debug.Log("Application.dataPath " + Application.dataPath);
     Debug.Log("Application.persistentDataPath " + Application.persistentDataPath);
 }
Пример #4
0
    void StoragePermissionRequest()
    {
        string         captureAndSaveGameObjectName = "CaptureAndSave";
        CaptureAndSave captureAndSave = GameObject.FindObjectOfType <CaptureAndSave>();

        if (captureAndSave != null)
        {
            captureAndSaveGameObjectName = captureAndSave.gameObject.name;
        }

        AndroidJavaClass javaClass = new AndroidJavaClass("com.astricstore.androidutil.AndroidGallery");

        javaClass.CallStatic("CheckForPermission", captureAndSaveGameObjectName);
    }
Пример #5
0
    void SetGalleryPath()
    {
        string         captureAndSaveGameObjectName = "CaptureAndSave";
        CaptureAndSave captureAndSave = GameObject.FindObjectOfType <CaptureAndSave>();

        if (captureAndSave != null)
        {
            captureAndSaveGameObjectName = captureAndSave.gameObject.name;
        }

        AndroidJavaClass javaClass = new AndroidJavaClass("com.astricstore.androidutil.AndroidGallery");

        javaClass.CallStatic("SetGalleryPath", captureAndSaveGameObjectName);
    }
Пример #6
0
    private void StoragePermissionRequest()
    {
        string         name = "CaptureAndSave";
        CaptureAndSave save = UnityEngine.Object.FindObjectOfType <CaptureAndSave>();

        if (save != null)
        {
            name = save.gameObject.name;
        }
        AndroidJavaClass class2 = new AndroidJavaClass("com.astricstore.androidutil.AndroidGallery");

        object[] args = new object[] { name };
        class2.CallStatic("CheckForPermission", args);
    }
Пример #7
0
    void Start()
    {
        //Application.targetFrameRate = 10;
        snapShot   = GameObject.FindObjectOfType <CaptureAndSave>();
        screenPath = Application.persistentDataPath;

        if (VuforiaManager.Instance != null && VuforiaManager.Instance.Initialized)
        {
            if (!CameraDevice.Instance.SetFocusMode(CameraDevice.FocusMode.FOCUS_MODE_CONTINUOUSAUTO))
            {
                CameraDevice.Instance.SetFocusMode(CameraDevice.FocusMode.FOCUS_MODE_TRIGGERAUTO);
            }
        }

        addListeners();
        //CameraDevice.Instance.SetFrameFormat (Vuforia.Image.PIXEL_FORMAT.GRAYSCALE, true);
    }
Пример #8
0
 void Start()
 {
     snapShot = GameObject.FindObjectOfType <CaptureAndSave>();
 }
Пример #9
0
 void Start()
 {
     snapShot = GameObject.FindObjectOfType<CaptureAndSave>();
 }
Пример #10
0
 void Start()
 {
     snapShot = GameObject.FindObjectOfType <CaptureAndSave>();
     Debug.Log(System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyPictures));
 }
Пример #11
0
 void Start()
 {
     snapshot = GetComponent <CaptureAndSave>();
 }
Пример #12
0
 // Use this for initialization
 void Start()
 {
     instance = this;
     snapShot = GameObject.FindObjectOfType <CaptureAndSave>();
 }
 void Start()
 {
     snapShot = GameObject.FindObjectOfType<CaptureAndSave>();
     Debug.Log (System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyPictures));
 }