Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetButtonDown("Fire1"))
     {
         Debug.Log("FiringScript: Firing!");
         magazine.FireNextBullet(playerCamera.ViewportToWorldPoint(new Vector3(0.5f, 0.5f, 0)), playerCamera.transform.forward, FxLocation.position);
     }
 }