NGUI 강의.hwp


'유니티3D > 예제' 카테고리의 다른 글

페인팅큐브_프로토타입  (0) 2013.09.14
PopUpButton.cs  (0) 2013.09.11
2DGameScripts  (0) 2013.09.10
Shoot  (0) 2013.09.03
UpDownRotate  (0) 2013.09.03


PaingCube.vol1.egg


PaingCube.vol2.egg


PaingCube.vol3.egg


PaingCube.vol4.egg


'유니티3D > 예제' 카테고리의 다른 글

NGUI_강의  (0) 2013.12.05
PopUpButton.cs  (0) 2013.09.11
2DGameScripts  (0) 2013.09.10
Shoot  (0) 2013.09.03
UpDownRotate  (0) 2013.09.03


using UnityEngine;

using System.Collections;



[ExecuteInEditMode()]

public class PopUpButton : MonoBehaviour {

private Rect windowRect = new Rect(5, 5, 250, 100);

private bool visibleWindow = false;

// Use this for initialization

void OnGUI()

{

if(GUI.Button (new Rect(30,30,120,30), "<<")){

visibleWindow = true;

}

if(visibleWindow){

windowRect = GUI.Window(0, new Rect(Screen.width/2 - 150,Screen.height/2-100,300,180), DoMyWindow, "Painting Cube");

}

}

void DoMyWindow(int windowID){

//LabelText

//GUI.Label (new Rect(windowRect.width/2-120,25,240,30), "This is PopUp Window");

//Button

if(GUI.Button (new Rect(windowRect.width/2-100,windowRect.height*0.2f,200,30), "Restart"))

{

visibleWindow = false;

}

if(GUI.Button (new Rect(windowRect.width/2-100,windowRect.height*0.4f,200,30), "Quit"))

{

visibleWindow = false;

}

if(GUI.Button (new Rect(windowRect.width/2-100,windowRect.height*0.6f,200,30), "About Painting Cube"))

{

visibleWindow = false;

}

GUI.DragWindow(new Rect(0,0,10000,20));

}

}







'유니티3D > 예제' 카테고리의 다른 글

NGUI_강의  (0) 2013.12.05
페인팅큐브_프로토타입  (0) 2013.09.14
2DGameScripts  (0) 2013.09.10
Shoot  (0) 2013.09.03
UpDownRotate  (0) 2013.09.03


BomExplosion 복사본.cs


Button 복사본.cs


EndingButton 복사본.cs


Health 복사본.cs


Health2 복사본.cs


IceWoodHealth 복사본.cs


NeedleRotate.cs


NeedleRotateCtrl 복사본.cs


PlayerCtrl 복사본.cs


Shoot 복사본.cs


Sprite 복사본.cs



UpDownRotateCtrl 복사본.cs


'유니티3D > 예제' 카테고리의 다른 글

페인팅큐브_프로토타입  (0) 2013.09.14
PopUpButton.cs  (0) 2013.09.11
Shoot  (0) 2013.09.03
UpDownRotate  (0) 2013.09.03
StreetLight.cs  (0) 2013.08.26

+ Recent posts