public void AddPveGameData(EnumPVEDataType type, float value) { if (InvalidPveCollection(type)) { return; } pveGameDatas[(int)type] += value; }
private bool InvalidPveCollection(EnumPVEDataType type) { //pve is over if (modulePVEEvent.isEnd) { return(true); } return(pveGameDatas == null || type < EnumPVEDataType.Health || type >= EnumPVEDataType.Count); }
private void SetPreviewCondition(TaskInfo.TaskStarCondition condition) { if (condition == null) { return; } type = condition.type; tarValue = condition.value; Util.SetText(m_descriptionText, TaskInfo.GetStarDescription(type, tarValue)); }
public float GetSecondData(EnumPVEDataType type) { if (InvalidPveCollection(type)) { return(0f); } if (type == EnumPVEDataType.Health || type == EnumPVEDataType.Rage) { return(Mathf.Round(pveGameDatas[(int)type] * 100f)); } else { return(pveGameDatas[(int)type]); } }
public void AddPveGameData(EnumPVEDataType type, int value) { AddPveGameData(type, (float)value); }