예제 #1
0
        // Use this for initialization
        IEnumerator Start()
        {
            this.IsGameOver = false;
            this.battleInfoManagerScript = FindObjectOfType <BattleInfoManager> ();
            this.popManager = FindObjectOfType <PopWindowManager> ();

            this.BattleData  = BattleDataManager.Instance.BattleDataCache;
            this.ConstValues = HangUpConstTableReader.Instance.DefaultCachedList [0];

            yield return(LoadRewardCoroutine());
            //yield return SaveTimeCoroutine ();
        }
예제 #2
0
        public HangUpRewardFormat(double deltaSeconds, short area, short level, HangUpConstTable constTable)
        {
            var _reward = HangUpRewardTableReader.Instance.FindDefaultUnique(area, level);

            var _deltaMins = (int)System.Math.Round(deltaSeconds / 60, 0);

            float _exp           = _reward.EXP * _deltaMins;
            float _aura          = _reward.Aura * _deltaMins;
            float _dimensionChip = _reward.DimensionChip * _deltaMins;

            var _a = Random.Range(constTable.CAMin, constTable.CAMax);
            var _b = Random.Range(constTable.CBMin, constTable.CBMax);
            var _c = Random.Range(constTable.CCMin, constTable.CCMax);

            _exp          *= _a;
            _aura         *= _a;
            _dimensionChip = this.GotDimensionChip * _b * _b + _c;

            _dimensionChip = Mathf.Max(constTable.CDemensionMin, _dimensionChip);

            this.GotEXP           = Mathf.FloorToInt(_exp);
            this.GotAura          = Mathf.FloorToInt(_aura);
            this.GotDimensionChip = Mathf.FloorToInt(_dimensionChip);
        }