Robot.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
        public void Dispose()
        {
          lock (Lock)
          {
            UsedCounter[ID] = false;
          }
        }
    

Usage Example

Example #1
0
        /// <summary>
        /// This method destrois the scene
        /// </summary>
        protected override void DestroyScene()
        {
            //manObjExample.Dispose();
            base.DestroyScene();
            #region Basics
            if (robot != null)
            {
                robot.Dispose();
            }
            if (environment != null)
            {
                environment.Dispose();
            }
            if (playerModel != null)
            {
                playerModel.Dispose();
            }
            #endregion

            #region Part 6
            //cameraNode.DetachAllObjects();
            //cameraNode.Dispose();
            #endregion

            #region Part 9
            gameHMD.Dispose();
            #endregion

            foreach (Bomb bomb in bombs)
            {
                bomb.Dispose();
            }

            physics.Dispose();
        }
All Usage Examples Of Robot::Dispose