Esempio n. 1
0
 // Update is called once per frame
 void LateUpdate()
 {
     //transform.position = RectTransformUtility.WorldToScreenPoint(Camera.main, subject.GetPosition());
     if (canvas == null)
     {
         Debug.Log("NULL");
     }
     transform.position = WorldToUISpace(canvas, subject.GetPosition() + new Vector3(0, 0.25f, 0));
     slider.maxValue    = subject.GetBattleStat().HealthMax;
     slider.value       = subject.GetBattleStat().Health;
 }
Esempio n. 2
0
 protected void SetMyBattleStat()
 {
     myBattleStat = owner.GetBattleStat();
 }
 public void SetSubject(ICombatant subjectIn)
 {
     subject           = subjectIn;
     subjectBattleStat = subject.GetBattleStat();
 }