在尝试操纵天线。TransmitMessage方法提示已经被IMyIntergridCommunicationSystem对像取代。
但是看天线方块的接口
public interface IMyRadioAntenna : IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity{
[Obsolete("Use IMyIntergridCommunicationSystem instead")]
bool TransmitMessage(string message, MyTransmitTarget target = 3);
float Radius { get; set; }
bool ShowShipName { get; set; }
bool IsBroadcasting { get; }
bool EnableBroadcasting { get; set; }
long AttachedProgrammableBlock { get; set; }
bool IgnoreAlliedBroadcast { get; set; }
bool IgnoreOtherBroadcast { get; set; }
string HudText { get; set; }}
没有哪条是返回IMyIntergridCommunicationSystem的。
请问我应该怎么获得IMyIntergridCommunicationSystem对像?
但是看天线方块的接口
public interface IMyRadioAntenna : IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity{
[Obsolete("Use IMyIntergridCommunicationSystem instead")]
bool TransmitMessage(string message, MyTransmitTarget target = 3);
float Radius { get; set; }
bool ShowShipName { get; set; }
bool IsBroadcasting { get; }
bool EnableBroadcasting { get; set; }
long AttachedProgrammableBlock { get; set; }
bool IgnoreAlliedBroadcast { get; set; }
bool IgnoreOtherBroadcast { get; set; }
string HudText { get; set; }}
没有哪条是返回IMyIntergridCommunicationSystem的。
请问我应该怎么获得IMyIntergridCommunicationSystem对像?