예제 #1
0
    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();
    }
예제 #2
0
 public override void OnSelectTarget(GameObject target)
 {
     panel.selectedEntity = target;
     panel.Refresh();
 }