All Projects → SebLague → Create A Game Source

SebLague / Create A Game Source

Licence: mit
Source code from my Create a Game tutorial series.

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) {"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].