Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class MenuSkin : MonoBehaviour {
- public GUISkin mySkin;
- bool value = true;
- void OnGUI(){
- GUI.skin=mySkin;
- value = GUI.Toggle(new Rect(20,20,60,60),value,"");
- if(GUI.Button(new Rect(20,Screen.height-70,200,60),"Mulai")){
- Debug.Log("Tombol Mulai Diklik");
- }
- if(GUI.Button(new Rect(240,Screen.height-70,200,60),"Pilih")){
- Debug.Log("Tombol Pilih Diklik");
- }
- if(GUI.Button(new Rect(460,Screen.height-70,200,60),"Keluar")){
- Debug.Log("Tombol Keluar Diklik");
- }
- }
- void Start () {
- }
- void Update () {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement