예제 #1
0
 private void HandleColorSwap()
 {
     Player.Color playerColor = player.currentColor;
     cc.TurnOffMesh(playerColor);
     cc.ChangeColor(fairy.GetColor());
     player.currentColor = fairy.GetColor();
     fairycc.TurnOffMesh(fairy.GetColor());
     fairycc.ChangeColor(playerColor);
     fairy.SetColor(playerColor);
     if (player.currentColor == Player.Color.Blue)
     {
         player.TurnDoubleJumpOn();
     }
     else
     {
         player.TurnDoubleJumpOff();
     }
 }