Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
# Conflicts:
#	LD53/Assets/Scenes/Main_Scene.unity
  • Loading branch information
GraphicEdit committed May 2, 2023
2 parents 6f6fab1 + e8f0319 commit d27377f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
11 changes: 10 additions & 1 deletion LD53/Assets/Code/TwitchIntegration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class TwitchIntegration : MonoBehaviour
private GameObject targetObj;

private string _channelName;
private bool canToggleRain = true;

BaseRainScript rainScript;

Expand All @@ -31,9 +32,17 @@ void Start()

string input = chatter.message;

if (input == "!rain") {
if (input == "!rain" && canToggleRain) {
canToggleRain = false;
StartCoroutine(ResetRainToggle());
rainScript.RainIntensity = (rainScript.RainIntensity == 0.0f ? 1.0f : 0.0f);
rainScript.EnableWind = !rainScript.EnableWind;
}
}

private IEnumerator ResetRainToggle() {
yield return new WaitForSeconds(120.0f);

canToggleRain = true;
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
- Fighting Enemies
- Side Scrolling
- Original art and sounds
- Twitch chat integration
- Twitch chat integration with command spam protection
- Fullscreen mode
- Cross platform

Expand Down
6 changes: 5 additions & 1 deletion team.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@

- Github: https://github.com/durmusrasit

### QA
## Writer
> - Felicite
## QA

> - notDepresseDeveloper
> - Lexix
Expand Down

0 comments on commit d27377f

Please sign in to comment.