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); }
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(""); }
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!"); }