一、飞机大战的界面:
二、如何让飞机大战运行起来并让鼠标点击发射子弹?
void Update ()
{
float height = 0;
float x = Input.GetAxis ("Vertical")*Time.deltaTime*speed;
float z = Input.GetAxis ("Horizontal")*Time.deltaTime*speed;
if(Input.GetKey(KeyCode.S))
{
height-=Time.deltaTime*speed;
}
if(Input.GetKey(KeyCode.W))
{
height+=Time.deltaTime*speed;
}
transform.Translate (-z,height,-x);
if(Input.GetButton