private void OnGUI() { if (Event.current.type != EventType.Repaint) { return; } if (this.contents == null) { this.Awake(); } if (this.lastUnity != this.unity || this.projection != this.lastProjectionTest) { int num = 0; for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { GUIContent str = this.contents[num, i, j]; float item = this.unity[i, j]; str.text = item.ToString("0.#####"); } } num = 1; for (int k = 0; k < 4; k++) { for (int l = 0; l < 4; l++) { GUIContent gUIContent = this.contents[num, k, l]; double item1 = this.facep[k, l]; gUIContent.text = item1.ToString("0.#####"); } } this.lastProjectionTest = this.projection; this.lastUnity = this.unity; } GUIStyle gUIStyle = GUI.skin.textField; for (int m = 0; m < 2; m++) { for (int n = 0; n < 4; n++) { for (int o = 0; o < 4; o++) { this.DrawLabel(m, n, o, gUIStyle); } } } }
private void OnGUI() { if (Event.current.type == EventType.Repaint) { if (this.contents == null) { this.Awake(); } if ((this.lastUnity != this.unity) || (this.projection != this.lastProjectionTest)) { int num = 0; for (int j = 0; j < 4; j++) { for (int m = 0; m < 4; m++) { this.contents[num, j, m].text = this.unity[j, m].ToString("0.#####"); } } num = 1; for (int k = 0; k < 4; k++) { for (int n = 0; n < 4; n++) { this.contents[num, k, n].text = this.facep[k, n].ToString("0.#####"); } } this.lastProjectionTest = this.projection; this.lastUnity = this.unity; } GUIStyle textField = GUI.skin.textField; for (int i = 0; i < 2; i++) { for (int num7 = 0; num7 < 4; num7++) { for (int num8 = 0; num8 < 4; num8++) { this.DrawLabel(i, num7, num8, textField); } } } } }