Example #1
0
 //取款点击
 public void WithdrawOnClick()
 {
     AudioManager.Instance.PlaySound(SoundName.ButtonClick);
     DepositContentObj.SetActive(false);
     WithdrawContentObj.SetActive(true);
     currentType = PointChangeType.Withdraw;
 }
Example #2
0
        private Points getPoints(PointChangeType Type)
        {
            switch (Type)
            {
            case PointChangeType.QuestionerPostsQuestion:
                return(new Points(3, 0));

            case PointChangeType.AnswererPostsAnswer:
                return(new Points(5, 0));

            case PointChangeType.VoterVotedQuestionUp:
                return(new Points(1, 1));

            case PointChangeType.VoterVotedQuestionDown:
                return(new Points(-1, 0));

            case PointChangeType.VoterVotedAnswerUp:
                return(new Points(1, 1));

            case PointChangeType.VoterVotedAnswerDown:
                return(new Points(-1, 1));

            case PointChangeType.VoterRemovedUpVote:
                return(new Points(-1, -1));

            case PointChangeType.VoterRemovedDownVote:
                return(new Points(1, 0));

            default:
                return(new Points(0, 0));
            }
        }
Example #3
0
 public void Init()
 {
     currentType = PointChangeType.Deposit;
     DepositContentObj.SetActive(true);
     WithdrawContentObj.SetActive(false);
     acountPointText.text = GameData.Instance.Point.ToString();
     balancePoint.text    = GameData.Instance.Balance.ToString();
     GameData.Instance.PointChangeEvent        += PointChange;
     GameData.Instance.BalancePointChangeEvent += BalancePointChange;
 }
Example #4
0
 public PointsChangedArgs(PointChangeType changeType, Tuple<Point3D, Vector3D>[] points, long? strokeToken = null)
 {
     this.ChangeType = changeType;
     this.Points = points;
     this.StrokeToken = strokeToken;
 }