public void Refresh(bool force = false) { if ((UnityEngine.Object)selectedTarget != (UnityEngine.Object)lastTarget || force) { lastTarget = selectedTarget; if ((UnityEngine.Object)selectedTarget != (UnityEngine.Object)null) { SetPanels(selectedTarget); SetStamps(selectedTarget); } } int count = statusItems.Count; statusItemPanel.gameObject.SetActive(count > 0); for (int i = 0; i < count; i++) { statusItems[i].Refresh(); } if (vitalsContainer.isActiveAndEnabled) { vitalsContainer.Refresh(); } RefreshStress(); RefreshStorage(); }
public override void OnSelectTarget(GameObject target) { panel.selectedEntity = target; panel.Refresh(); }