public void _GainRsc(List <float> list, _GainType type = _GainType.Generic) { if (!VerifyRscList(list.Count)) { return; } //mul*=PerkManager.GetRscGainMul(); //if(mul!=1) list=ApplyMultiplier(list, mul); if (type == _GainType.Generic) { Debug.Log("Generic"); list = PerkManager.ApplyRscGain(list); } else if (type == _GainType.CreepKilled) { Debug.Log("CreepKilled"); list = PerkManager.ApplyRscGainCreepKilled(list); } else if (type == _GainType.WaveCleared) { Debug.Log("WaveCleared"); list = PerkManager.ApplyRscGainWaveCleared(list); } else if (type == _GainType.RscTower) { Debug.Log("RscTower"); list = PerkManager.ApplyRscGainRscTower(list); } for (int i = 0; i < list.Count; i++) { rscList[i] += (int)Mathf.Round(list[i]); } Debug.Log("Gain " + list[0] + " " + rscList[0] + " " + type); TDTK.OnRscChanged(rscList); }
public static void GainRsc(List <float> list, _GainType type = _GainType.Generic) { instance._GainRsc(list, type); }
//~ public static void GainRsc(List<int> list, float mul=1){ instance._GainRsc(IntToFloatList(list), mul); } //~ public static void GainRsc(List<float> list, float mul=1){ instance._GainRsc(list, mul); } //~ public void _GainRsc(List<float> list, float mul=1){ public static void GainRsc(List <int> list, _GainType type = _GainType.Generic) { instance._GainRsc(IntToFloatList(list), type); }