internal ActiveBody(GameObject gameObject, ActiveBodyModuleData moduleData) { GameObject = gameObject; _moduleData = moduleData; MaxHealth = (Fix64)moduleData.MaxHealth; SetHealth((Fix64)(moduleData.InitialHealth ?? moduleData.MaxHealth)); }
internal ActiveBody(GameObject gameObject, ActiveBodyModuleData moduleData) { _gameObject = gameObject; _moduleData = moduleData; MaxHealth = (Fix64)moduleData.MaxHealth; Health = (Fix64)moduleData.InitialHealth; }