title: 'NSInvalidArgumentException', reason: '-[MenuScene distance]: when replacing a scene
body: <p>In my code I have made a GameManager singleton which has a method responsible for changing scenes. The first scene I call is the MenuScene after that I replace it with the GameScene. When I do this the Console output shows:</p>
  
  <pre><code>2013-10-07 19:40:55.895 MyGame[56164:a0b] -[MenuScene distance]: unrecognized selector sent to instance 0xb460690
  2013-10-07 19:40:56.011 MyGame[56164:a0b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MenuScene distance]: unrecognized selector sent to instance 0xb460690'
  </code></pre>
  
  <p>From the log, I don't understand why I get <code>-[MenuScene distance] ...</code> because distance is a property of GameScene not MenuScene.</p>
  
  <p>Below is GameManager method for changing scenes:</p>
  
  <pre><code>-(void)runSceneWithID:(SceneTypes)sceneID {
  SceneTypes oldScene = currentScene;
  currentScene = sceneID;
  //NSString* str;
  id sceneToRun = nil;
  switch (sceneID)
  {
      case kBeginScene:
          sceneToRun = [BeginScene node];
           break;
      case kGameScene:
          sceneToRun = [GameScene node];
          break;
  
      case kMenuScene:
          sceneToRun = [MenuScene node];
          break;
  
      default:
          CCLOG(@"Unknown ID, cannot switch scenes");
          return;
          break;
  }
  
  if (sceneToRun == nil) {
      // Revert back, since no new scene was found
      currentScene = oldScene;
      return;
  }
  
  
  if ([[CCDirector sharedDirector] runningScene] == nil) {
      [[CCDirector sharedDirector] runWithScene:sceneToRun];
  
  } else {
  
      [[CCDirector sharedDirector] replaceScene:sceneToRun];
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Also the call to replace scene is in a layer class which is part of the MenuScene. See below:</p>
  
  <pre><code>-(void)startGameScene {
  [[GameManager sharedGameManager] runSceneWithID:kGameScene];
  
  }
  </code></pre>
  
  <p>Please help.</p>