Example #1
0
 //	when tapped, this does something
 public int ChangeState()
 {
     curState++;
     if (curState >= PlayerBoardAllUIState.numOfPlayerBoardAllUIStates)
     {
         curState = 0;
     }
     SetState(curState);
     return((int)curState);
 }
Example #2
0
    public int SetState(PlayerBoardAllUIState newState)
    {
        curState = newState;
        posToggler.SetState((int)newState);
        switch (curState)
        {
        case PlayerBoardAllUIState.isTuckedAway:
            break;

        case PlayerBoardAllUIState.isExpanded:
            break;
        }
        return((int)newState);
    }
Example #3
0
 public void OnToggle(int curIndex)
 {
     curState = (PlayerBoardAllUIState)curIndex;
     SetState(curState);
 }