ColorSelector.NewColor C# (CSharp) Method

NewColor() public method

public NewColor ( ) : void
return void
    public void NewColor()
    {
        //Change the color
        if (hexOneInFront)
            hex1.GUIColorLerp(Constants.RandomColor());
        else
            hex2.GUIColorLerp(Constants.RandomColor());

        //Start the swap animation
        MoveSwap ();
    }

Same methods

ColorSelector::NewColor ( int c ) : void

Usage Example

Exemplo n.º 1
0
 //Anytyime a move is made, this is called
 public void DoMove()
 {
     //Update count and color chooser
     moves.DoMove();
     if (!tutorialEnabled)
     {
         colorSelector.NewColor();
     }
     else
     {
         colorSelector.NewColor(0);
     }
 }