void OnStageChange(OnStageChange e) { if (e.ActiveStage != e.PrevStage) { audio.PlayOneShot(clips[ESFXType.FIRE_LIT], volumes[ESFXType.FIRE_LIT]); } }
void OnStageChange(OnStageChange e) { if (e.ActiveStage == this) { rend.sprite = activeSprite; } else { rend.sprite = deactiveSprite; } }