Пример #1
0
        internal ActiveBody(GameObject gameObject, ActiveBodyModuleData moduleData)
        {
            GameObject  = gameObject;
            _moduleData = moduleData;

            MaxHealth = (Fix64)moduleData.MaxHealth;

            SetHealth((Fix64)(moduleData.InitialHealth ?? moduleData.MaxHealth));
        }
Пример #2
0
        internal ActiveBody(GameObject gameObject, ActiveBodyModuleData moduleData)
        {
            _gameObject = gameObject;
            _moduleData = moduleData;

            MaxHealth = (Fix64)moduleData.MaxHealth;

            Health = (Fix64)moduleData.InitialHealth;
        }