Hi can someone please help me convert this code into touch for mobile device please as i am not good with C#
public class GuiScripts : MonoBehaviour {
public GUISkin guiSkin;
public Material material2;
public Vector2 size;
public Vector2 position;
public float distance;
// static bool showButtons = false;
// float timer=0;
public float timerTick;
// bool showRequest = false;
float maxTimer;
Rect colorCollision;
//Color baseColorMaterialEmis;
void Start()
{
this.position = new Vector2(position.x, Screen.height - 91);
}
void OnGUI() {
GUI.skin = guiSkin;
GUI.depth = 1;
GUI.Button(new Rect(0.0f, Screen.height-599, 0, 0),"","BG");
//GUI.Button(new Rect(500.0f, 546.0f, 250, 46),"","ZoomBG");
if(GUI.Button(new Rect(230.0f, Screen.height- 56.0f, 50, 105),"","about"))
GameObject.Find("Window").GetComponent<Window>().Change();
if(GUI.Button(new Rect(350.0f, Screen.height- 56.0f, 50, 105),"","bicon"))
GameObject.Find("Window1").GetComponent<Window>().Change();
}
}
Thank you very much in advance.