private void showStatusIndicator(CharacterInstance followCharacter, SkillType skillType) { StatusIndicator item = PlayerView.Binder.StatusIndicatorPool.getObject(); item.transform.SetParent(base.transform, false); item.gameObject.SetActive(true); item.initialize(followCharacter, skillType, this.sm_sharedSkillMaterials[skillType]); this.m_statusIndicators.Add(item); }
private void hideStatusIndicators(CharacterInstance c) { for (int i = this.m_statusIndicators.Count - 1; i >= 0; i--) { StatusIndicator indicator = this.m_statusIndicators[i]; if (indicator.FollowCharacter == c) { PlayerView.Binder.StatusIndicatorPool.returnObject(indicator); this.m_statusIndicators.Remove(indicator); } } }