void Awake() { GameObject go = GameObject.Find("Game Master"); if (go != null) { gameMaster = go.GetComponent <GameMaster>(); } map = GetComponent <cMap>(); }
public MainForm() { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); PLloc = new GMarkerGoogle(plMPos, (Bitmap)Image.FromFile(resPath + "\\pl.png")); GCSloc = new GMarkerGoogle(gcsMPos, GMarkerGoogleType.green_pushpin); GCSloc = new GMarkerGoogle(gcsMPos, (Bitmap)Image.FromFile(resPath + "\\gcs.png")); optAttitude = cAttitude.PYRAMID; optMap = cMap.MAP; dataRecFS = new StreamWriter(dataRecPath + "\\Data_Sensor" + postFix("txt")); ftConf._saveRC = true; //GCSloc = new GMarkerGoogle(markerPos, picGCS); // // TODO: Add constructor code after the InitializeComponent() call. // }