Beispiel #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;
        }
Beispiel #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;
        }
Beispiel #3
0
        public void GoLoadedWrapper(string source, UnityObject unityObj)
        {
            if (GoLoaded != null)
            {
                GoLoaded.Invoke(unityObj);
            }

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

            --NotFinishedRequests;
        }