Ejemplo n.º 1
0
    public void AddPveGameData(EnumPVEDataType type, float value)
    {
        if (InvalidPveCollection(type))
        {
            return;
        }

        pveGameDatas[(int)type] += value;
    }
Ejemplo n.º 2
0
    private bool InvalidPveCollection(EnumPVEDataType type)
    {
        //pve is over
        if (modulePVEEvent.isEnd)
        {
            return(true);
        }

        return(pveGameDatas == null || type < EnumPVEDataType.Health || type >= EnumPVEDataType.Count);
    }
Ejemplo n.º 3
0
        private void SetPreviewCondition(TaskInfo.TaskStarCondition condition)
        {
            if (condition == null)
            {
                return;
            }

            type     = condition.type;
            tarValue = condition.value;
            Util.SetText(m_descriptionText, TaskInfo.GetStarDescription(type, tarValue));
        }
Ejemplo n.º 4
0
    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]);
        }
    }
Ejemplo n.º 5
0
 public void AddPveGameData(EnumPVEDataType type, int value)
 {
     AddPveGameData(type, (float)value);
 }