Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 void Awake()
 {
     gDataRef                = GameObject.Find("GameManager").GetComponent <GalaxyData>(); // set the reference
     galCameraRef            = GameObject.Find("Main Camera").GetComponent <GalaxyCameraScript>();
     toolTipOriginalLocation = TooltipItem.transform.localPosition;
 }
Ejemplo n.º 3
0
 void Awake()
 {
     gDataRef     = GameObject.Find("GameManager").GetComponent <GalaxyData>(); // set the reference
     galCameraRef = GameObject.Find("Main Camera").GetComponent <GalaxyCameraScript>();
 }