public override void Dispose() { mRay.Dispose(); mRay = null; mRaySceneQuery.Dispose(); mRaySceneQuery = null; /*if (myLine != null) * { * SceneNode n = mSceneManager.GetSceneNode("Line1"); * if (n!= null) * n.DetachObject(myLine); * myLine.Dispose(); * }*/ myLine.Dispose(); myLine = null; mLog.Dispose(); mLog = null; base.Dispose(); }