屬性GridTerminalSystem可以有一個名爲GetBlockWithName的方法嗎?屬性是否有方法?
class Program
{
static void Main(string[] args)
{
var InteriorLight = GridTerminalSystem.GetBlockWithName("Interior Light") as IMyInteriorLight;
InteriorLight.ApplyAction("OnOff_On");
}
}
作業問題?這是基本的東西...嘗試谷歌或得到一本書,我猜。 – Matt
如果確實如此。你仍然應該接受這個建議。如果您不瞭解基礎知識,那麼您將會遇到任何類型的代碼。 – Matt
當你在下面的'C#GridTerminalSystem'上進行谷歌搜索時會發生什麼? – MethodMan