Пример #1
0
 /// <summary>
 /// Update is called every frame, if the MonoBehaviour is enabled.
 /// </summary>
 void Update()
 {
     if (Input.GetMouseButton(0))
     {
         bullet_mgr.ShotBullet(t.position, t.forward);
     }
     if (Input.GetKeyDown(KeyCode.Escape))
     {
         Cursor.visible = !Cursor.visible;
     }
 }