mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 19:37:39 +02:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user