예제 #1
0
 private void RecreateTextures()
 {
     if (FromBG == null)
     {
         MaybeCreateFirst();
     }
     else
     {
         if (SaveData.s.Backgrounds)
         {
             FromBG.Show();
             if (ToBG != null)
             {
                 ToBG.Show();
             }
             FromBG.capturer.RecreateTexture();
             if (ToBG != null)
             {
                 ToBG.capturer.RecreateTexture();
             }
         }
         else
         {
             FromBG.Hide();
             if (ToBG != null)
             {
                 ToBG.Hide();
             }
         }
     }
 }
예제 #2
0
 private void FinishTransition()
 {
     if (ToBG != null && FromBG != null)
     {
         FromBG.Hide();
         FromBG = ToBG;
         ToBG   = null;
     }
 }