Source code from my Create a Game tutorial series.
Switch branches/tags
Nothing to show
Clone or download
Sebastian Lague Sebastian Lague
Sebastian Lague and Sebastian Lague Audio files
Latest commit 4dbb5ae Dec 16, 2016

README.md

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) {"