コード例 #1
0
ファイル: Player.cs プロジェクト: Show-Kondou/MyData
 /// <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;
     }
 }