Exemple #1
0
 public void Dispose()
 {
     mFollowWorldSpaceObject.Dispose();
     //originally the bubble window was being unregistered with the gui in the next frame
     // apparently it was done that way as a fix to a bug that we dont remember anymore...
     // ...but we need this object to clean itself up this frame in case the avatar needs to be deleted while the next bubble is being displayed
     // if some bug regresses with the bubble window being deleted this frame, we should probably try and find another way to fix it rather than
     // waiting a frame to clean it up.
     mGuiManager.UnregisterTopLevel(mBubbleWindow);
 }
Exemple #2
0
        public override void Dispose()
        {
            base.Dispose();
            mGuiPosition.Dispose();
            GameObject.Destroy(mUnityGameObject);
            mUnityGameObject = null;

            if (mWorker != null)
            {
                mWorker.EndOfLevel();
            }
        }
Exemple #3
0
        private void CleanupAsyncFunctions()
        {
            if (mWalkingTask != null)
            {
                mWalkingTask.Exit();
                mWalkingTask = null;
            }

            if (mHandleBonusTask != null)
            {
                mHandleBonusTask.Exit();
                mHandleBonusTask = null;
            }

            mTargetReachedCallback = null;
            if (mFollowWorldSpaceObject != null)
            {
                mFollowWorldSpaceObject.Dispose();
            }
        }