- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
if(GUI.Button(Rect(100,50,50,50),NewTexture[0]))
{ Change = true; Clicks += 1; GridNumber = 0; }
if(GUI.Button(Rect(150,50,50,50),NewTexture[1]))
{ Change = true; Clicks += 1; GridNumber = 1; }
if(GUI.Button(Rect(200,50,50,50),NewTexture[2]))
{ Change = true; Clicks += 1; GridNumber = 2; }
if(GUI.Button(Rect(250,50,50,50),NewTexture[3]))
{ Change = true; Clicks += 1; GridNumber = 3; }
if(GUI.Button(Rect(300,50,50,50),NewTexture[4]))
{ Change = true; Clicks += 1; GridNumber = 4; }
if(GUI.Button(Rect(350,50,50,50),NewTexture[5]))
{ Change = true; Clicks += 1; GridNumber = 5; }
if(GUI.Button(Rect(400,50,50,50),NewTexture[6]))
{ Change = true; Clicks += 1; GridNumber = 6; }
if(GUI.Button(Rect(100,100,50,50),NewTexture[7]))
{ Change = true; Clicks += 1; GridNumber = 7; }
if(GUI.Button(Rect(150,100,50,50),NewTexture[8]))
{ Change = true; Clicks += 1; GridNumber = 8; }
if(GUI.Button(Rect(200,100,50,50),NewTexture[9]))
{ Change = true; Clicks += 1; GridNumber = 9; }
if(GUI.Button(Rect(250,100,50,50),NewTexture[10]))
{ Change = true; Clicks += 1; GridNumber = 10; }
if(GUI.Button(Rect(300,100,50,50),NewTexture[11]))
{ Change = true; Clicks += 1; GridNumber = 11; }
if(GUI.Button(Rect(350,100,50,50),NewTexture[12]))
{ Change = true; Clicks += 1; GridNumber = 12; }
if(GUI.Button(Rect(400,100,50,50),NewTexture[13]))
{ Change = true; Clicks += 1; GridNumber = 13; }
if(GUI.Button(Rect(100,150,50,50),NewTexture[14]))
{ Change = true; Clicks += 1; GridNumber = 14; }
if(GUI.Button(Rect(150,150,50,50),NewTexture[15]))
{ Change = true; Clicks += 1; GridNumber = 15; }
if(GUI.Button(Rect(200,150,50,50),NewTexture[16]))
{ Change = true; Clicks += 1; GridNumber = 16; }
if(GUI.Button(Rect(250,150,50,50),NewTexture[17]))
{ Change = true; Clicks += 1; GridNumber = 17; }
if(GUI.Button(Rect(300,150,50,50),NewTexture[18]))
{ Change = true; Clicks += 1; GridNumber = 18; }
if(GUI.Button(Rect(350,150,50,50),NewTexture[19]))
{ Change = true; Clicks += 1; GridNumber = 19; }
if(GUI.Button(Rect(400,150,50,50),NewTexture[20]))
{ Change = true; Clicks += 1; GridNumber = 20; }
if(GUI.Button(Rect(100,200,50,50),NewTexture[21]))
{ Change = true; Clicks += 1; GridNumber = 21; }
if(GUI.Button(Rect(150,200,50,50),NewTexture[22]))
{ Change = true; Clicks += 1; GridNumber = 22; }
if(GUI.Button(Rect(200,200,50,50),NewTexture[23]))
{ Change = true; Clicks += 1; GridNumber = 23; }
if(GUI.Button(Rect(250,200,50,50),NewTexture[24]))
{ Change = true; Clicks += 1; GridNumber = 24; }
if(GUI.Button(Rect(300,200,50,50),NewTexture[25]))
{ Change = true; Clicks += 1; GridNumber = 25; }
if(GUI.Button(Rect(350,200,50,50),NewTexture[26]))
{ Change = true; Clicks += 1; GridNumber = 26; }
if(GUI.Button(Rect(400,200,50,50),NewTexture[27]))
{ Change = true; Clicks += 1; GridNumber = 27; }
if(GUI.Button(Rect(100,250,50,50),NewTexture[28]))
{ Change = true; Clicks += 1; GridNumber = 28; }
if(GUI.Button(Rect(150,250,50,50),NewTexture[29]))
{ Change = true; Clicks += 1; GridNumber = 29; }
if(GUI.Button(Rect(200,250,50,50),NewTexture[30]))
{ Change = true; Clicks += 1; GridNumber = 30; }
if(GUI.Button(Rect(250,250,50,50),NewTexture[31]))
{ Change = true; Clicks += 1; GridNumber = 31; }
if(GUI.Button(Rect(300,250,50,50),NewTexture[32]))
{ Change = true; Clicks += 1; GridNumber = 32; }
if(GUI.Button(Rect(350,250,50,50),NewTexture[33]))
{ Change = true; Clicks += 1; GridNumber = 33; }
if(GUI.Button(Rect(400,250,50,50),NewTexture[34]))
{ Change = true; Clicks += 1; GridNumber = 34; }
if(GUI.Button(Rect(400,350,50,50),NewTexture[40]))
{ Change = true; Clicks += 1; GridNumber = 40; }
if(GUI.Button(Rect(450,350,50,50),NewTexture[41]))
{ Change = true; Clicks += 1; GridNumber = 41; }
if(GUI.Button(Rect(500,350,50,50),NewTexture[42]))
{ Change = true; Clicks += 1; GridNumber = 42; }
...
if(GUI.Button(Rect(100,550,65,65),NewTexture[35]))
{ Change = true; Clicks += 1; GridNumber = 35; }
if(GUI.Button(Rect(165,550,65,65),NewTexture[36]))
{ Change = true; Clicks += 1; GridNumber = 36; }
if(GUI.Button(Rect(230,550,65,65),NewTexture[37]))
{ Change = true; Clicks += 1; GridNumber = 37; }
if(GUI.Button(Rect(295,550,65,65),NewTexture[38]))
{ Change = true; Clicks += 1; GridNumber = 38; }
if(GUI.Button(Rect(360,550,65,65),NewTexture[39]))
{ Change = true; Clicks += 1; GridNumber = 39; }
http://answers.unity3d.com/questions/691870/gui-button-not-showing-up.html
gost 12.09.2014 13:37 # +1
guest 16.09.2014 10:50 # 0
adepto 24.08.2021 23:43 # 0