public void MapOptionMenuStart(){ buildmapmanager = GetComponent<BuildMapMenuManager> (); SwitchToMapInfoPanel (); SetAllInformation (); }
public void StartTileData() { buildmapmenu = this.transform.parent.gameObject.transform.parent.gameObject.transform.parent.gameObject; buildmapmenumanager = buildmapmenu.GetComponent <BuildMapMenuManager> (); //Debug.Log ("current map is " + mapmenumanager.CurrentGameMapID); tileimage = this.GetComponent <Image> (); SwitchTileGraphic(); tileimage.color = tilenormalcolor; }
private void FindScripts() { uimanager = GetComponent <BuildAssetUIManager> (); writejsonmanager = GetComponent <WriteJsonManager> (); mapmanager = GetComponent <MapManager> (); mainmenumanager = maincanvasmenu.gameObject.GetComponentInChildren <BuildAssetMainMenuManager>(); selectmapmenumanager = maincanvasmenu.gameObject.GetComponentInChildren <SelectBuildMapPanelMenuManager>(); buildmapmanager = maincanvasmenu.gameObject.GetComponentInChildren <BuildMapMenuManager>(); selectmaptemplatemenumanager = maincanvasmenu.gameObject.GetComponentInChildren <SelectBuildMapTemplateMenuManager> (); buildmaptypemenumanager = maincanvasmenu.gameObject.GetComponentInChildren <BuildMapTypeMenuManager> (); testmapmanager = maincanvasmenu.gameObject.GetComponentInChildren <TestMapPanelManager> (); selectcharactermenumanager = maincanvasmenu.gameObject.GetComponentInChildren <SelectBuildCharacterMenuManager>(); buildcharactermanager = maincanvasmenu.gameObject.GetComponentInChildren <BuildCharacterMenuManager>(); selectinventorymenumanager = maincanvasmenu.gameObject.GetComponentInChildren <SelectBuildInventoryMenuManager>(); buildinventorymenumanager = maincanvasmenu.gameObject.GetComponentInChildren <BuildInventoryMenuManager>(); }