예제 #1
0
    // 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
    }
예제 #2
0
파일: GLBox.cs 프로젝트: xieminghui/glline
    // 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
    }
예제 #3
0
    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
    }
예제 #4
0
    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");
        }
    }
예제 #5
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
    }