示例#1
0
 public int GetViewerCoins()
 {
     if (ToolkitSettings.SyncStreamLabs)
     {
         coins = StreamLabs.GetViewerPoints(this);
     }
     return(coins);
 }
示例#2
0
        public void TakeViewerCoins(int coins)
        {
            if (ToolkitSettings.SyncStreamLabs)
            {
                this.coins = StreamLabs.GetViewerPoints(this);
            }

            SetViewerCoins(this.coins - coins);
        }
示例#3
0
 public void GiveViewerCoins(int coins)
 {
     if (ToolkitSettings.SyncStreamLabs)
     {
         this.coins = StreamLabs.GetViewerPoints(this);
     }
     // do not let user go below 0 coins
     if (this.coins + coins < 0)
     {
         this.coins = 0;
         SetViewerCoins(0);
     }
     else
     {
         SetViewerCoins(this.coins + coins);
     }
 }