Skip to content

Latest commit

 

History

History
17 lines (16 loc) · 700 Bytes

README.md

File metadata and controls

17 lines (16 loc) · 700 Bytes

Create-a-Game-Source

Source code for the Create a Game tutorial series found here: Watch Series

Post tutorial series fixes:

  • Problem: Sfx volume incorrect after choosing to play again
  • Solution: Add this method to the AudioManager class:
  void OnLevelWasLoaded(int index) {
  	if (playerT == null) {
  		if (FindObjectOfType<Player> () != null) {
  			playerT = FindObjectOfType<Player> ().transform;
  		}
  	}
  }
  • Problem: Player being awarded score multiple times for single enemy death:
  • Solution: In TakeHit method of Enemy class, replace "if (damage >= health) {" with "if (damage >= health && !dead) {"