コード例 #1
0
 public void CountdownChanged(object sender, CountdownEventArgs args)
 {
     if (args.Counter > 0)
     {
         _countTexture = contentManager.Load <Texture2D>(@"UI\" + args.Counter);
     }
     else if (args.Counter == 0)
     {
         _countTexture = contentManager.Load <Texture2D>(@"UI\Begin");
     }
     else
     {
         _countTexture = null;
     }
 }
コード例 #2
0
 public void CountdownChanged(object sender, CountdownEventArgs args)
 {
     if (args.Counter > 0)
     {
         _countTexture = contentManager.Load<Texture2D>(@"UI\" + args.Counter);
     }
     else if (args.Counter == 0)
     {
         _countTexture = contentManager.Load<Texture2D>(@"UI\Begin");
     }
     else
     {
         _countTexture = null;
     }
 }