Added Light to the Light Bulb if colour is changed with right click

You can now right click on bulb in the editor to change the colour of the light emitted. If the colour is set to black then no light is drawn.
This commit is contained in:
Carson Kompon
2022-02-25 23:57:18 -05:00
parent 37a2ed24c7
commit c557c62b32
6 changed files with 202 additions and 3 deletions

View File

@ -15,6 +15,7 @@ namespace RhythmHeavenMania.Games.KarateMan
public GameObject Holder;
private GameObject newHolder;
public GameObject Sprite;
public GameObject BottomSprite;
private SpriteRenderer spriteComp;
public GameObject Shadow;
private SpriteRenderer shadowSpriteComp;
@ -60,6 +61,7 @@ namespace RhythmHeavenMania.Games.KarateMan
shadowSpriteComp = Shadow.GetComponent<SpriteRenderer>();
Sprite.transform.eulerAngles = new Vector3(0, 0, Random.Range(0, 360));
BottomSprite.transform.eulerAngles = Sprite.transform.eulerAngles;
if (type == 2)
hitLength = 14f;