Example #1
0
 protected override void ChangeBackgroundEvent(ChangeBackgroundEvent e)
 {
     if (e.eDefaultBackground)
     {
         m_meshRenderer.material = m_materials[0];
         _index = 0;
     }
     else
     {
         ShuffleArray();
         StartCoroutine(ShakeCamera());
         StartCoroutine(TriggerExplosion());
         _index = (++_index % 2 == 0) ? 0 : 1;
         StartCoroutine(BackgroundTransition());
     }
 }
Example #2
0
 protected virtual void ChangeBackgroundEvent(ChangeBackgroundEvent e)
 {
 }