protected override void Start() { IMyCubeGrid grid = (IMyCubeGrid)MyAPIGateway.Entities.GetEntityById(EntityId); Profiler = new AeroProfiler(grid); Update.UpdateManager.Register(100, CheckProfiler); }
public void Update1() { if (!m_aeroShow) { m_profiler = null; return; } Base6Directions.Direction gridDirection = m_cockpit.Orientation.TransformDirection(m_aeroShowDirection); if (m_profiler == null || m_profiler.m_drawDirection.Value != gridDirection) { m_profiler = new AeroProfiler(m_cockpit.CubeGrid, gridDirection); } }
private void CubeGrid_OnBlockChange(Sandbox.Game.Entities.Cube.MySlimBlock obj) { value_profiler = null; }