|
|
@@ -194,10 +194,10 @@ public class Player : MonoBehaviour
|
|
|
lightIntensity = muzzleLight.intensity;
|
|
|
var joystickNames = Input.GetJoystickNames();
|
|
|
useMouseLook = joystickNames.Length == 0 || string.IsNullOrEmpty(joystickNames[0]);
|
|
|
- if (useMouseLook)
|
|
|
- {
|
|
|
- lookSmoothingSeconds = 0;
|
|
|
- }
|
|
|
+ //if (useMouseLook)
|
|
|
+ //{
|
|
|
+ // lookSmoothingSeconds = 0;
|
|
|
+ //}
|
|
|
|
|
|
_powerUp[0] = gauge.Find("PowerUp1").gameObject;
|
|
|
_powerUp[1] = gauge.Find("PowerUp2").gameObject;
|
|
|
@@ -235,14 +235,7 @@ public class Player : MonoBehaviour
|
|
|
if (shooting)
|
|
|
{
|
|
|
Shoot();
|
|
|
- if (Time.frameCount % 4 == 0)
|
|
|
- {
|
|
|
- muzzleLight.intensity = 0;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- muzzleLight.intensity = Random.Range(.5f, 2f) * lightIntensity;
|
|
|
- }
|
|
|
+ muzzleLight.intensity = Random.Range(.5f, 2f) * lightIntensity;
|
|
|
}
|
|
|
else
|
|
|
{
|