Example #1
0
 public override void BindToScene(Scene scene)
 {
     base.BindToScene(scene);
     m_debugShape = new DebugShape();
     m_debugShape.BindToScene(scene);
     m_debugShape.RelateGameObject = m_gameObject;
     UpdateSensor();
 }
Example #2
0
 public override void BindToScene(Scene scene)
 {
     base.BindToScene(scene);
     if (Mgr <GameEngine> .Singleton._gameEngineMode == GameEngine.GameEngineMode.MapEditor)
     {
         m_debugShape = new DebugShape();
         m_debugShape.BindToScene(scene);
     }
 }
Example #3
0
 protected void UpdateDebugShape()
 {
     if (m_debugShape == null)
     {
         m_debugShape = new DebugShape();
         m_debugShape.BindToScene(m_gameObject.Scene);
     }
     m_debugShape.DiffuseColor = Color.Green;
     UpdateDebugShapeVertex();
 }