public override void BindToScene(Scene scene) { base.BindToScene(scene); m_debugShape = new DebugShape(); m_debugShape.BindToScene(scene); m_debugShape.RelateGameObject = m_gameObject; UpdateSensor(); }
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); } }
protected void UpdateDebugShape() { if (m_debugShape == null) { m_debugShape = new DebugShape(); m_debugShape.BindToScene(m_gameObject.Scene); } m_debugShape.DiffuseColor = Color.Green; UpdateDebugShapeVertex(); }