protected void Bind(IInstanceHolderSet holder) { if (holder.InstanceLeader.Group != null) { holder.InstanceLeader.Group.ForeachCharacter((chr) => { var instances = chr.Instances; if (instances != null) { instances.BindTo(this); } }); } else { holder.InstanceLeaderCollection.BindTo(this); } }
protected void Bind(IInstanceHolderSet holder) { if (holder.InstanceLeader.Group != null) { holder.InstanceLeader.Group.ForeachCharacter(chr => { InstanceCollection instances = chr.Instances; if (instances == null) { return; } instances.BindTo(this); }); } else { holder.InstanceLeaderCollection.BindTo(this); } }
protected override void Dispose() { base.Dispose(); m_owner = null; }
protected override void Dispose() { base.Dispose(); this.m_owner = (IInstanceHolderSet)null; }