向屏幕正中间发射一颗子弹
Vector3 point = Camera.ScreenToWorldPoint (new Vector3 (Screen.width/2, Screen.height/2, 0));
GameObject bullet = (GameObject)Instantiate (Bullets, point, Quaternion.identity);
bullet.transform.forward = Camera.transform.forward;
向屏幕正中间发射一颗子弹
Vector3 point = Camera.ScreenToWorldPoint (new Vector3 (Screen.width/2, Screen.height/2, 0));
GameObject bullet = (GameObject)Instantiate (Bullets, point, Quaternion.identity);
bullet.transform.forward = Camera.transform.forward;