Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
local-interloper committed Feb 21, 2020
1 parent 62f2454 commit a974cf7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Assets/_Game/Scripts/Core/GameController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void GameOver(){
}
Destroy(planet);
Destroy(playerRoot);
StartCoroutine(EndgameTimer(5));
StartCoroutine(EndgameTimer(3));
StartCoroutine(RumbleHandler.Rumble(0, 0));
}

Expand Down
6 changes: 3 additions & 3 deletions Assets/_Game/Scripts/Player/Fire.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ public class Fire : MonoBehaviour
[SerializeField]
private float offset;

private AudioSource audio;
private AudioSource a;

private void Awake(){
audio = GetComponent<AudioSource>();
a = GetComponent<AudioSource>();
}

private void Update(){
if(Input.GetButtonDown("Fire1")){
audio.PlayOneShot(audio.clip);
a.PlayOneShot(a.clip);
Instantiate(projectilePrefab, transform.position + transform.up * offset, transform.rotation);
StartCoroutine(RumbleHandler.Rumble(0.1f, 0.5f));
}
Expand Down
4 changes: 2 additions & 2 deletions ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PlayerSettings:
useOnDemandResources: 0
accelerometerFrequency: 60
companyName: DefaultCompany
productName: asteroids-game
productName: Asteroids
defaultCursor: {fileID: 0}
cursorHotspot: {x: 0, y: 0}
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
Expand Down Expand Up @@ -118,7 +118,7 @@ PlayerSettings:
16:10: 1
16:9: 1
Others: 1
bundleVersion: 0.1
bundleVersion: alpha-0.1
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
Expand Down

0 comments on commit a974cf7

Please sign in to comment.