Ejemplo n.º 1
0
 public void OnTurnBegins(int turn)
 {
     Debug.Log("OnTurnBegins() turn: " + turn);
     this.localSelection  = RpsCore.Hand.None;
     this.remoteSelection = RpsCore.Hand.None;
     this.WinOrLossImage.gameObject.SetActive(false);
     this.localSelectionImage.gameObject.SetActive(false);
     this.remoteSelectionImage.gameObject.SetActive(true);
     this.IsShowingResults = false;
     this.ButtonCanvasGroup.set_interactable(true);
 }
Ejemplo n.º 2
0
    // Token: 0x0600022E RID: 558 RVA: 0x0000F21E File Offset: 0x0000D41E
    private Sprite SelectionToSprite(RpsCore.Hand hand)
    {
        switch (hand)
        {
        case RpsCore.Hand.Rock:
            return(this.SelectedRock);

        case RpsCore.Hand.Paper:
            return(this.SelectedPaper);

        case RpsCore.Hand.Scissors:
            return(this.SelectedScissors);
        }
        return(null);
    }
Ejemplo n.º 3
0
 public void OnPlayerFinished(PhotonPlayer photonPlayer, int turn, object move)
 {
     Debug.Log(string.Concat(new object[]
     {
         "OnTurnFinished: ",
         photonPlayer,
         " turn: ",
         turn,
         " action: ",
         move
     }));
     if (photonPlayer.IsLocal)
     {
         this.localSelection = (RpsCore.Hand)((byte)move);
     }
     else
     {
         this.remoteSelection = (RpsCore.Hand)((byte)move);
     }
 }
Ejemplo n.º 4
0
 public void MakeTurn(RpsCore.Hand selection)
 {
     this.turnManager.SendMove((byte)selection, true);
 }