/// <summary> /// Delete the specified entry, adding it to the unused list. /// </summary> public virtual void DeleteArrow(UIMapArrowBase ent) { if (ent != null) { mListArrow.Remove(ent); mUnusedArrow.Add(ent); NJGTools.SetActive(ent.gameObject, false); } }
public virtual void DeleteArrow(UIMapArrowBase ent) { if (ent != null) { this.mListArrow.Remove(ent); this.mUnusedArrow.Add(ent); NJGTools.SetActive(ent.gameObject, false); } }
private void OnDestroy() { if (Application.isPlaying) { if (NJGMapBase.instance != null && NJGMapBase.instance.fow.enabled) { NJGFOW.DeleteRevealer(this.mRevealer); } this.mRevealer = null; if (this.arrow != null) { UIMiniMapBase.inst.DeleteArrow(this.arrow); } this.arrow = null; } NJGMapItem.list.Remove(this); }