- 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
if (SellMenuEnable)
{
GUI.Box (new Rect (Screen.width/2 - 200, Screen.height/2 - 300, 400, 480),"");
if (GUI.Button (new Rect (Screen.width/2 + 180, Screen.height/2 - 300, 20, 20), "X" ))
{
SellMenuEnable = false;
}
// ШМОТКИ слево
if (SLOT1)
{
GUI.Box (new Rect (Screen.width/2 - 170, Screen.height/2 - 270, 160, 50),"1");
}
if (SLOT3)
{
GUI.Box (new Rect (Screen.width/2 - 170, Screen.height/2 - 210, 160, 50),"3");
}
if (SLOT5)
{
GUI.Box (new Rect (Screen.width/2 - 170, Screen.height/2 - 150, 160, 50),"5");
}
if (SLOT7)
{
GUI.Box (new Rect (Screen.width/2 - 170, Screen.height/2 - 90, 160, 50),"7");
}
if (SLOT9)
{
GUI.Box (new Rect (Screen.width/2 - 170, Screen.height/2 - 30, 160, 50),"9");
}
if (SLOT11)
{
GUI.Box (new Rect (Screen.width/2 - 170, Screen.height/2 + 30, 160, 50),"11");
}
if (SLOT13)
{
GUI.Box (new Rect (Screen.width/2 - 170, Screen.height/2 + 90, 160, 50),"13");
}
// ШМОТКИ с права
if (SLOT2)
{
GUI.Box (new Rect (Screen.width/2 + 10, Screen.height/2 - 270, 160, 50),"2");
}
if (SLOT4)
{
GUI.Box (new Rect (Screen.width/2 + 10, Screen.height/2 - 210, 160, 50),"4");
}
if (SLOT6)
{
GUI.Box (new Rect (Screen.width/2 + 10, Screen.height/2 - 150, 160, 50),"6");
}
if (SLOT8)
{
GUI.Box (new Rect (Screen.width/2 + 10, Screen.height/2 - 90, 160, 50),"8");
}
if (SLOT10)
{
GUI.Box (new Rect (Screen.width/2 + 10, Screen.height/2 - 30, 160, 50),"10");
}
if (SLOT12)
{
GUI.Box (new Rect (Screen.width/2 + 10, Screen.height/2 + 30, 160, 50),"12");
}
if (SLOT14)
{
GUI.Box (new Rect (Screen.width/2 + 10, Screen.height/2 + 90, 160, 50),"14");
}
}
DBdev 10.06.2013 15:36 # +5
> с права
Ну почему?!
movaxbx 10.06.2013 16:08 # +1
bormand 10.06.2013 16:59 # +5
DBdev 10.06.2013 17:21 # +3
Логика ведь какая-то должна быть...
bormand 10.06.2013 17:22 # 0
Ой.
> Логика ведь какая-то должна быть...
Логика тут есть - во всем этом коде нет никакой логики ;) Ну не думаю я, что в юнити нельзя прицепить теги к объектам.