protected override void OnPEDestroy() { PlayerNetwork.OnTeamChangedEventHandler -= OnResetFlag; PlayerNetwork.OnLimitBoundsDel(Id); base.OnPEDestroy(); DragArticleAgent.Destory(Id); RemoveFlag(); }
protected override void OnPEDestroy() { StopAllCoroutines(); switch (ExternId) { case ColonyIDInfo.COLONY_ASSEMBLY: { PlayerNetwork.OnTeamChangedEventHandler -= OnTeamChange; PlayerNetwork.OnLimitBoundsDel(Id); } break; } DragArticleAgent.Destory(Id); if (null != Runner) { Destroy(Runner.gameObject); } }