【发布时间】:2016-07-21 17:40:04
【问题描述】:
我正在 Unity 中制作游戏,但我不知道为什么会出现此错误。如果你们能帮助我,我将不胜感激。
private enum States
{
NewGame,
Cell,
Sheets,
Mirror,
Lock,
Key,
Escape
}
private States my_state;
void state_cell()
{
text.text = "You are in a jail captured by Indians, you have to escape at all cost. You have to " +
"aware the Pakistan Army about the evil plans of indians, and you got minimal time left " +
"\n\n Press S to view the Sheets, press R to return, Press M to get the Mirror,press " +
"L to view the Lock, and press M to make Key";
if(Input.GetKeyDown(KeyCode.S))
{
(my_state = States.Sheets);
}
}
void state_sheets()
{
text.text = "Press S to view the sheets which has info about the security lock, There is some wet " +
"mud and a metal things lying around see if you can make a key for the Lock " +
"Also you wanna cut some piece from the Mirror hanging on the wall to find the " +
"measurements of the Lock";
if(Input.GetKeyDown(KeyCode.R))
{
(my_state = States.Cell);
}
}
我也在使用 monodevelop 4.0.1 版
【问题讨论】:
标签: c#