// Use this for initialization void Start() { #if UNITY_ANDROID && !UNITY_EDITOR string debug_enable = SystemProperties.get(DEBUG_KEY, "0"); m_FPS.SetActive(debug_enable == "1"); #endif }
// Update is called once per frame void Update() { #if !(UNITY_EDITOR) space = float.Parse(SystemProperties.get(SPACEKEY, 40.ToString())); boxCount = int.Parse(SystemProperties.get(BOXCOUNTKEY, 50.ToString())); linCount = int.Parse(SystemProperties.get(LINCOUTKEY, 7.ToString())); #endif }
private void OnApplicationPause(bool pause) { #if UNITY_ANDROID && !UNITY_EDITOR if (!pause) { string debug_enable = SystemProperties.get(DEBUG_KEY, "0"); m_FPS.SetActive(debug_enable == "1"); } #endif }
private void Update() { if (Input.GetKeyDown(KeyCode.K)) { StartCoroutine(UploadPNG()); } if (SystemProperties.get("ids.screenshot", "0").Equals("1")) { StartCoroutine(UploadPNG()); SystemProperties.set("ids.screenshot", "0"); } }
private void AnalizePlayMode() { #if SVR_USE_GAZE string type = SystemProperties.get("persist.svr.video_player_type", "list"); Debug.Log("playloop:" + type); playLoop = type == "playloop"; if (playLoop != lastLoop) { if (OnPlayLoopEvent != null) { OnPlayLoopEvent.Invoke(); } lastLoop = playLoop; Cinema.IsPlayMode = true; } #endif }