// Start is called before the first frame update void Start() { pathui = GameObject.Find("UpcomingModulePaths").GetComponent <PathUI>(); plr = GameObject.Find("Spaceship").GetComponent <Spaceship>(); moduleList = Resources.LoadAll <GameObject>("Modules"); setModuleType("Unknown"); }
internal PathForm(PathUI command, PointFeature from, PointFeature to) { InitializeComponent(); m_Command = command; m_From = from; m_To = to; previewLabel.Text = String.Empty; SetZeroValues(); }
/// <summary> /// Creates a new <c>GetPointForm</c> /// </summary> /// <param name="cmd">The parent command.</param> /// <param name="title">The title for the window.</param> /// <param name="col">The color hint for the point.</param> /// <param name="enableBack">Should the "back" button be enabled?</param> internal GetPointForm(PathUI cmd, string title, Color col, bool enableBack) { InitializeComponent(); m_Parent = cmd; m_Point = null; m_Color = col; m_Title = title; m_IsPointed = false; m_IsBackEnabled = enableBack; }