Esempio n. 1
0
        public void Init(string name, int sliderCount)
        {
            base.Init();
            var rectTransform = GameObject.Find("UITestPanel").NewChildWithRectTransform(name);

            rectTransform.anchorMin = Vector2.zero;
            rectTransform.anchorMax = Vector2.one;
            rectTransform.sizeDelta = Vector2.zero;
            graphicComponent.SetGameObject(rectTransform.gameObject, false);
            this.uiBlood = Client.instance.uiManager.AddUIBlood(graphicComponent.transform, 150, sliderCount, null, null);
        }
Esempio n. 2
0
 public void RemoveUIBlood(UIBlood uiBlood)
 {
     this.uiBloodManager.RemoveChild(uiBlood.key);
 }
Esempio n. 3
0
 protected override void _Reset()
 {
     base._Reset();
     Client.instance.uiManager.RemoveUIBlood(this.uiBlood);
     this.uiBlood = null;
 }