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