void OnRecvFence(FenceMessage mes) { if (mes.type == FenceMessage.FenceType.SceneEnd) { SortObjects(); } }
void OnRecvFence(FenceMessage mes) { if (mes.type == FenceMessage.FenceType.SceneBegin) { BeforeUpdateScene(); } else if (mes.type == FenceMessage.FenceType.SceneEnd) { AfterUpdateScene(); m_server.NotifyPoll(PollMessage.PollType.SceneUpdate); } }