protected internal override void OnEditorTick(float dt) { base.OnEditorTick(dt); if (!MBEditor.IsEntitySelected(this.GameEntity)) { return; } DebugExtensions.RenderDebugCircleOnTerrain(this.Scene, this.CaptureFrame, this.InteractionDistance, 2852192000U); }
protected internal override void OnEditorTick(float dt) { base.OnEditorTick(dt); foreach (GameEntity highlightedEntite in this._highlightedEntites) { highlightedEntite.SetContourColor(new uint?()); } this._highlightedEntites.Clear(); if (!MBEditor.IsEntitySelected(this.GameEntity)) { return; } uint color = 4294901760; if ((double)this.Radius > 0.0) { DebugExtensions.RenderDebugCircleOnTerrain(this.Scene, this.GameEntity.GetGlobalFrame(), this.Radius, color); } foreach (SpawnerBase spawnerBase in this.GetSpawnersForEditor()) { spawnerBase.GameEntity.SetContourColor(new uint?(color)); this._highlightedEntites.Add(spawnerBase.GameEntity); } }