title: Unity, IntField in GUI?
body: <p>how can i edit Int value with <code>GUI.TextField</code> or anything for editing Using A Field for Int in GUI?<br>
  i can't use String with code <code>PlayerControl.Spawn(Int X, Int Y, Int Z)</code><br>
  My Code is</p>
  
  <pre><code>namespace MonoInjector
  {
  using AssemblyCSharp;
  using System;
  using System.Net.Sockets;
  using System.Reflection;
  using UnityEngine;
  
  public class CheatGUI3 : MonoBehaviour
  {
      private bool ChatSpamTextOn = false;
      private bool DrawGUIOn = false;
      private int CoordinateX = 0;
      private int CoordinateY = 0;
      private int CoordinateZ = 0;
      private static CheatGUI2 cheatgui;
      private static Rect windowRect = new Rect(10f, 350f, 150f, 180f);
      private void DrawGUI()
      {
          windowRect = GUI.Window(0, windowRect, new GUI.WindowFunction(this.DrawGUIWindow), "Black3D");
      }
      private void DrawGUIWindow(int id)
      {
          int num = 0x16;
          GUI.Label(new Rect(2f, (float)num, 125f, 20f), "Coordinate X");
          num += 0x16;
          CoordinateX = GUI.TextField(new Rect(10, 10, 200, 20), CoordinateX, 40);
          num += 14;
          GUI.Label(new Rect(2f, (float)num, 125f, 20f), "Coordinate Y");
          num += 0x16;
          CoordinateY = GUI.TextField(new Rect(10, 10, 200, 20), CoordinateY, 40);
          num += 14;
          GUI.Label(new Rect(2f, (float)num, 125f, 20f), "Coordinate Z");
          num += 0x16;
          CoordinateZ = GUI.TextField(new Rect(10, 10, 200, 20), CoordinateZ, 40);
          num += 14;
      }
      private void HandleTeleport()
      {
          PlayerControl.Spawn(CoordinateX, CoordinateY, CoordinateZ);
      }
  </code></pre>
  
  <p>there is error</p>
  
  <blockquote>
    <p>Error 161 The best overloaded method match for 'UnityEngine.GUI.TextField(UnityEngine.Rect, string, int)' has some invalid arguments</p>
  </blockquote>
  
  <p>and error</p>
  
  <blockquote>
    <p>Error 165 Argument 2: cannot convert from 'int' to 'string'</p>
  </blockquote>
  
  <p>and error</p>
  
  <blockquote>
    <p>Error 163 Argument 3: cannot convert from 'int' to 'UnityEngine.GUIStyle'</p>
  </blockquote>
  
  <p>edit: i can't use String for CoordinateX etc</p>