void Awake() { gScriptRef = GameObject.Find("Main Camera").GetComponent <GalaxyCameraScript>(); // tie the game camera script to the data canvasRef = GameObject.Find("System UI Canvas").GetComponent <Canvas>(); galaxyDataRef = GameObject.Find("GameManager").GetComponent <GalaxyData>(); gameDataRef = GameObject.Find("GameManager").GetComponent <GlobalGameData>(); graphicsDataRef = GameObject.Find("GameManager").GetComponent <GraphicAssets>(); gScreenRef = GameObject.Find("GameEngine").GetComponent <GalaxyScreen>(); systemIntelLevel = GameObject.Find("Intel Level").GetComponent <Text>(); systemIntelText = GameObject.Find("Intel Level Text Label").GetComponent <Text>(); lowIntelLevelPlanetData = GameObject.Find("Low Intel Level Text").GetComponent <Text>(); noIntelLevelPlanetData = GameObject.Find("No Intel Level Text").GetComponent <Text>(); noStellarObjectText = GameObject.Find("No Stellar Object Text").GetComponent <Text>(); //systemGovernorImage = GameObject.Find("Character Image").GetComponent<Image>(); lowIntelLevelPlanetData.enabled = false; }
void Awake() { gDataRef = GameObject.Find("GameManager").GetComponent <GalaxyData>(); // set the reference galCameraRef = GameObject.Find("Main Camera").GetComponent <GalaxyCameraScript>(); toolTipOriginalLocation = TooltipItem.transform.localPosition; }
void Awake() { gDataRef = GameObject.Find("GameManager").GetComponent <GalaxyData>(); // set the reference galCameraRef = GameObject.Find("Main Camera").GetComponent <GalaxyCameraScript>(); }