示例#1
0
 public int GetHP(E_AI_Type a_type)
 {
     for (int i = 0; i < _arrAI_DataRecord.Length; i++)
     {
         if (_arrAI_DataRecord[i]._E_AI_Type == a_type)
         {
             return(_arrAI_DataRecord[i]._HP);
         }
     }
     return(0);
 }
示例#2
0
 public string GetModelName(E_AI_Type a_type)
 {
     for (int i = 0; i < _arrAI_DataRecord.Length; i++)
     {
         if (_arrAI_DataRecord[i]._E_AI_Type == a_type)
         {
             return(_arrAI_DataRecord[i]._model_name);
         }
     }
     return("");
 }
示例#3
0
    public void SetupBossHP(E_AI_Type a_type)
    {
        for (int i = 0; i < _arrAI_DataRecord.Length; i++)
        {
            if (_arrAI_DataRecord[i]._E_AI_Type == a_type)
            {
                _CurrentBossHP = _arrAI_DataRecord[i]._HP;
                return;
            }
        }

        Debug.LogError("Boss Type Error!");
    }