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>(); }
void Start() { #if (UNITY_ANDROID && !UNITY_EDITOR) Screen.fullScreen = false; #endif _captureAndSave = GameObject.FindObjectOfType <CaptureAndSave>(); _SetupUI(); _SetupWebcamTexture(); }
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); }
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); }
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); }
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); }
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); }
void Start() { snapShot = GameObject.FindObjectOfType <CaptureAndSave>(); }
void Start() { snapShot = GameObject.FindObjectOfType<CaptureAndSave>(); }
void Start() { snapShot = GameObject.FindObjectOfType <CaptureAndSave>(); Debug.Log(System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyPictures)); }
void Start() { snapshot = GetComponent <CaptureAndSave>(); }
// 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)); }