24 lines
339 B
C#
24 lines
339 B
C#
public Program()
|
|
{
|
|
|
|
}
|
|
|
|
public void Save()
|
|
{
|
|
|
|
}
|
|
|
|
public void Main(string argument, UpdateType updateSource)
|
|
{
|
|
IMyBeacon mayak = GridTerminalSystem.GetBlockWithName("Маяк") as IMyBeacon;
|
|
|
|
if (mayak.Enabled)
|
|
{
|
|
mayak.ApplyAction("OnOff_Off");
|
|
}
|
|
else
|
|
{
|
|
mayak.ApplyAction("OnOff_On");
|
|
}
|
|
}
|