Ejemplo 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);
     }
 }
Ejemplo 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();
        }
Ejemplo 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());
        }
Ejemplo 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");
            }
        }