public void ShowSecondary(GameObject obj) { secondaryPanel.Display(obj); Clear(secondaryStatusEntries); foreach (StatusEffect eff in obj.GetComponentsInChildren <StatusEffect>()) { StatusIndicatorEntry entry = Dequeue(secondaryPanel); entry.Title = eff.GetType().Name.TrimStart(new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '_' }); PrepareRankIndicator(entry, eff.Rank); PrepareDurationIndicator(entry, eff.GetComponentInChildren <DurationStatusCondition>()); secondaryStatusEntries.Add(entry); } MovePanel(secondaryPanel, ShowKey, ref secondaryTransition); }
public void ShowSecondary(GameObject obj) { secondaryPanel.Display(obj); MovePanel(secondaryPanel, ShowKey, ref secondaryTransition); }
public void ShowPrimary(GameObject obj) { primaryPanel.Display(obj); MovePanel(primaryPanel, ShowKey, ref primaryTransition); }
public void ShowSecondary(GameObject obj) { secondaryStatPanel.Display(obj); MovePanel(secondaryStatPanel, ShowKey, ref secondaryPanelTweener); }
public void ShowPrimary(GameObject obj) { primaryStatPanel.Display(obj); MovePanel(primaryStatPanel, ShowKey, ref primaryPanelTweener); }