private IMyTextPanel GetPanel() { if (_panel == null) { _panel = GTS.GetBlockWithName(_name) as IMyTextPanel; InitPanel(); } return(_panel); }
public IMyMotorStator GetRotor() { if (_motor == null) { _motor = GTS.GetBlockWithName(GetRotorName()) as IMyMotorStator; if (_motor != null) { Init(); } } return(_motor); }
public Block(string stringId) { block = GTS.GetBlockWithName(stringId); }