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