Exemple #1
0
        public override MiniGameLearnRules SetupLearnRules()
        {
            var rules = new MiniGameLearnRules();

            // example: a.minigameVoteSkewOffset = 1f;
            return(rules);
        }
        private MiniGameLearnRules GetLearnRules(MiniGameCode code)
        {
            MiniGameLearnRules rules = new MiniGameLearnRules();

            switch (code)
            {
            case MiniGameCode.Balloons_letter:      // @todo: set correct ones per each minigame
                rules.voteLogic      = MiniGameLearnRules.VoteLogic.Threshold;
                rules.logicParameter = 0.5f;
                break;

            default:
                rules.voteLogic = MiniGameLearnRules.VoteLogic.SuccessRatio;
                break;
            }
            return(rules);
        }