コード例 #1
0
 public void updateColour(float transitionTime)
 {
     if (this.activeSprite != null)
     {
         if (StateManager.getInstance().CurrentTransitionState == StateManager.TransitionState.TransitionIn)
         {
             this.activeSprite.LightColour = TransitionUtils.fadeIn(Color.White, Display.TRANSITION_TIME, transitionTime);
         }
         else if (StateManager.getInstance().CurrentTransitionState == StateManager.TransitionState.TransitionOut)
         {
             this.activeSprite.LightColour = TransitionUtils.fadeOut(Color.White, Display.TRANSITION_TIME, transitionTime);
         }
     }
 }
コード例 #2
0
ファイル: Player.cs プロジェクト: XXChester/Flowers
 public void updateColour(float transitionTime)
 {
     if (StateManager.getInstance().CurrentTransitionState == StateManager.TransitionState.TransitionIn)
     {
         this.Text.LightColour            = TransitionUtils.fadeIn(ResourceManager.getInstance().TextColour, Display.TRANSITION_TIME, transitionTime);
         this.myTurnSprite.LightColour    = TransitionUtils.fadeIn(Color.White, Display.TRANSITION_TIME, transitionTime);
         this.notMyTurnSprite.LightColour = TransitionUtils.fadeIn(Color.White, Display.TRANSITION_TIME, transitionTime);
     }
     else if (StateManager.getInstance().CurrentTransitionState == StateManager.TransitionState.TransitionOut)
     {
         this.Text.LightColour            = TransitionUtils.fadeOut(ResourceManager.getInstance().TextColour, Display.TRANSITION_TIME, transitionTime);
         this.myTurnSprite.LightColour    = TransitionUtils.fadeOut(Color.White, Display.TRANSITION_TIME, transitionTime);
         this.notMyTurnSprite.LightColour = TransitionUtils.fadeOut(Color.White, Display.TRANSITION_TIME, transitionTime);
     }
 }
コード例 #3
0
 protected Color fadeOut(Color colour)
 {
     return(TransitionUtils.fadeOut(colour, Display.TRANSITION_TIME, this.currentTransitionTime));
 }