예제 #1
0
    protected override void OnPEDestroy()
    {
        PlayerNetwork.OnTeamChangedEventHandler -= OnResetFlag;
        PlayerNetwork.OnLimitBoundsDel(Id);
        base.OnPEDestroy();

        DragArticleAgent.Destory(Id);

        RemoveFlag();
    }
예제 #2
0
    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);
        }
    }