예제 #1
0
        private void GoLoadedWrapper(string source, UnityObject unityObj)
        {
            if (GoLoaded != null)
            {
                try
                {
                    _goLoadedProfile.BeginProfile();
                    GoLoaded.Invoke(unityObj);
                }
                finally
                {
                    _goLoadedProfile.EndProfile();
                }
            }

            if (AfterGoLoaded != null)
            {
                try
                {
                    _afterGoLoadedProfile.BeginProfile();
                    AfterGoLoaded(unityObj);
                }
                finally
                {
                    _afterGoLoadedProfile.EndProfile();
                }
            }

            RemoveRequest(LevelRequestEnum.LoadGo, unityObj.Address.ToString());
            --NotFinishedRequests;
        }
예제 #2
0
        private void GoLoadedWrapper(string source, UnityObject unityObj)
        {
            if (GoLoaded != null)
            {
                try
                {
                    _goLoadedProfile.BeginProfile();
                    GoLoaded.Invoke(unityObj);
                }
                finally
                {
                    _goLoadedProfile.EndProfile();
                }
            }

            if (AfterGoLoaded != null)
            {
                try
                {
                    _afterGoLoadedProfile.BeginProfile();
                    AfterGoLoaded(unityObj);
                }
                finally
                {
                    _afterGoLoadedProfile.EndProfile();
                }
            }

            --NotFinishedRequests;
        }
예제 #3
0
        public void GoLoadedWrapper(string source, UnityObject unityObj)
        {
            if (GoLoaded != null)
            {
                GoLoaded.Invoke(unityObj);
            }

            if (AfterGoLoaded != null)
            {
                AfterGoLoaded(unityObj);
            }

            --NotFinishedRequests;
        }