public void UpdateTarget(AntennaRelay.LastSeen enemy) { if (enemy == null) { return; } foreach (IMyCubeGrid grid in AttachedGrid.AttachedGrids(m_block.CubeGrid, AttachedGrid.AttachmentKind.Terminal, true)) { CubeGridCache cache = CubeGridCache.GetFor(grid); if (cache == null) { continue; } foreach (IMyCubeBlock warhead in cache.BlocksOfType(typeof(MyObjectBuilder_Warhead))) { if (m_block.canControlBlock(warhead)) { Log.DebugLog("Starting countdown for " + warhead.getBestName(), Logger.severity.DEBUG); warhead.ApplyAction("StartCountdown"); } } } m_countingDown = true; }
public void UpdateTarget(AntennaRelay.LastSeen enemy) { }