Example #1
0
        private void CreateHealthBox(GameEntity e)
        {
            HealthBoxBehaviour hb = GameObject.Instantiate(_prefab);

            hb.SetTarget(e.gameObject.value);
            hb.GetComponent <RectTransform>().SetParent(_OSD);
            hb.MaxHealth = e.health.value;
            e.AddUnityHealthBox(hb);
        }