https://github.com/SebLague/Create-a-Game-Source
Source code from my Create a Game tutorial series.
https://github.com/SebLague/Create-a-Game-Source
Last synced: about 1 year ago
JSON representation
Source code from my Create a Game tutorial series.
- Host: GitHub
- URL: https://github.com/SebLague/Create-a-Game-Source
- Owner: SebLague
- License: mit
- Created: 2015-09-17T21:22:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-28T15:19:21.000Z (over 9 years ago)
- Last Synced: 2025-04-07T15:09:35.658Z (about 1 year ago)
- Language: C#
- Homepage: https://www.youtube.com/playlist?list=PLFt_AvWsXl0ctd4dgE1F8g3uec4zKNRV0
- Size: 4.35 MB
- Stars: 278
- Watchers: 32
- Forks: 172
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Create-a-Game-Source
Source code for the Create a Game tutorial series found here: [Watch Series](https://youtu.be/SviIeTt2_Lc?list=PLFt_AvWsXl0ctd4dgE1F8g3uec4zKNRV0)
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 () != null) {
playerT = FindObjectOfType ().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) {"