Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.65 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class MenuSkin : MonoBehaviour {
  6.  
  7. public GUISkin mySkin;
  8. bool value = true;
  9.    
  10.     void OnGUI(){
  11.         GUI.skin=mySkin;
  12.         value = GUI.Toggle(new Rect(20,20,60,60),value,"");
  13.         if(GUI.Button(new Rect(20,Screen.height-70,200,60),"Mulai")){
  14.             Debug.Log("Tombol Mulai Diklik");
  15.         }
  16.         if(GUI.Button(new Rect(240,Screen.height-70,200,60),"Pilih")){
  17.             Debug.Log("Tombol Pilih Diklik");
  18.  
  19.         }
  20.         if(GUI.Button(new Rect(460,Screen.height-70,200,60),"Keluar")){
  21.             Debug.Log("Tombol Keluar Diklik");
  22.         }
  23.  
  24.     }
  25.  
  26.     void Start () {
  27.        
  28.     }
  29.    
  30.    
  31.     void Update () {
  32.        
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement