Esempio n. 1
0
 // Update is called once per frame
 void Update()
 {
     GameObject[] table = GameObject.FindGameObjectsWithTag(TargetTag);
     foreach (GameObject obj in table)
     {
         XLogger.Log("Destroy object Tag:EditorOnly: " + obj.name);
         Destroy(obj.gameObject);
     }
 }
Esempio n. 2
0
        // Update is called once per frame
        void Update()
        {
            if (Input.GetKeyDown(m_keyCode))
            {
                XLogger.Log("DbgSys:NavObstacleViewer:" + m_enableView.ToString());
                m_enableView = !m_enableView;
            }

            FindTouchView();
        }
Esempio n. 3
0
        void Awake()
        {
            float scale = BaseWidth / Screen.width;

            scale.MaxLimited(1.0f);
            int width  = (int)(Screen.width * scale);
            int height = (int)(Screen.height * scale);

            Screen.SetResolution(width, height, true, RefreshRate);
            XLogger.Log("ChangeResolution Base:" + BaseWidth.ToString() + " Rate:" + RefreshRate.ToString());
        }
Esempio n. 4
0
        public static void Capture(string filename, string pass)
        {
            XLogger.Log("Capture Screenshot! : pass = "******"/" + filename + ".png");
            }
            else if (Application.platform == RuntimePlatform.WindowsPlayer)
            {
                Application.CaptureScreenshot("../" + pass + "/" + filename + ".png");
            }
        }