Karate Man Events have been merged also I forgot the toggle in the last update lol

This commit is contained in:
Carson Kompon
2022-03-01 12:40:59 -05:00
parent 3f84054779
commit 4142c09a4c
4 changed files with 491 additions and 18 deletions

View File

@ -36,6 +36,12 @@ namespace RhythmHeavenMania.Games.KarateMan
Custom
}
public enum BackgroundFXType
{
None,
Sunburst
}
public enum ShadowType
{
Tinted,
@ -64,6 +70,7 @@ namespace RhythmHeavenMania.Games.KarateMan
public SpriteRenderer BGFXSprite;
public BackgroundType BGType = BackgroundType.Yellow;
public BackgroundFXType BGFXType = BackgroundFXType.None;
public Color BGColor;
public ShadowType Shadow = ShadowType.Tinted;
@ -269,14 +276,18 @@ namespace RhythmHeavenMania.Games.KarateMan
}
}
public void BGFXOn()
public void SetBackgroundFX(BackgroundFXType type)
{
BGFXSprite.enabled = true;
}
public void BGFXOff()
{
BGFXSprite.enabled = false;
BGFXType = type;
if(BGFXType == BackgroundFXType.None)
{
BGFXSprite.enabled = false;
}
else
{
BGFXSprite.enabled = true;
}
}
public void SetBackgroundColor(int type, int shadowType, Color backgroundColor, Color shadowColor)