void Awake()
 {
     gDataRef = GameObject.Find("GameManager").GetComponent<GalaxyData>(); // set the reference
     galCameraRef = GameObject.Find("Main Camera").GetComponent<GalaxyCameraScript>();
     toolTipOriginalLocation = TooltipItem.transform.localPosition;
 }
 // Use this for initialization
 void Start()
 {
     gScriptRef = GameObject.Find("Main Camera").GetComponent<GalaxyCameraScript>(); // tie the game camera script to the data
     gScreen = GameObject.Find("GameEngine").GetComponent<GalaxyScreen>();
     wireFrameOverlay.SetActive(false);
     planetButtonBarBackground.SetActive(false);
     tileMapPanel.SetActive(false);
     stellarographyPanel.SetActive(false);
     edictPanel.SetActive(false);
     tileMapLight.enabled = false;
     tilePanelOriginalRotation = tileMapPanel.transform.rotation;
 }
        void Awake()
        {
            // modal stuff
            modalPanel = ModalPanel.Instance();  // sets up a static instance of the window
            myYesAction = new UnityAction(TestYesFunction); // assign functions to actions
            myNoAction = new UnityAction(TestNoFunction);
            myCancelAction = new UnityAction(TestCancelFunction);

            starmapSprite = GameObject.Find("Y-Axis Grid");
            systemHeaderImage = GameObject.Find("System Header Image");
            starDataTextLine = GameObject.Find("StarDataTextInfo").GetComponent<Text>();
            secondaryDataTextLine = GameObject.Find("CameraZoomValue").GetComponent<Text>();
            secondaryZoomValueLine = GameObject.Find("CameraZoomInfo").GetComponent<Text>();
            gameDate = GameObject.Find("GameDate").GetComponent<Text>();
            backingSphere = GameObject.Find("Backing Sphere");
            empireTreasuryRevenues = GameObject.Find("EmpireTreasuryRevenues").GetComponent<Text>();
            empireTreasuryExpenses = GameObject.Find("EmpireTreasuryExpenses").GetComponent<Text>();
            emperorPoSup = GameObject.Find("Popular Support").GetComponent<Text>();
            emperorAP = GameObject.Find("Action Points").GetComponent<Text>();
            emperorBenevolentInfluence = GameObject.Find("Benevolent Influence").GetComponent<Text>();
            emperorPragmaticInfluence = GameObject.Find("Pragmatic Influence").GetComponent<Text>();
            emperorTyrannicalInfluence = GameObject.Find("Tyrannical Influence").GetComponent<Text>();
            versionNumber = GameObject.Find("Version Info").GetComponent<Text>();
            systemUICanvas = GameObject.Find("System UI Canvas");
            eventScrollView = GameObject.Find("Event ScrollView");
            selectedUnitInfoCanvas = GameObject.Find("Selected Unit Information Canvas");
            systemDisplaySystemName = GameObject.Find("System Name Text").GetComponent<Text>();
            systemDisplaySecondaryDataLine = GameObject.Find("Secondary Header Line").GetComponent<Text>();
            systemDisplayTertiaryDataLine = GameObject.Find("Tertiary Header Line").GetComponent<Text>();
            galaxyMapModeInfo = GameObject.Find("MapModeInfo").GetComponent<Text>();
            galaxyMapSubModeInfo = GameObject.Find("MapSubModeInfo").GetComponent<Text>();
            empireStatusBar = GameObject.Find("Empire Status Bar").GetComponent<Image>();
            button = GameObject.Find("War Button").GetComponent<Image>();
            galaxyUICanvas = GameObject.Find("Galaxy UI Canvas").GetComponent<Canvas>();
            galaxyPlanetInfoCanvas = GameObject.Find("Galaxy Planet Info Canvas").GetComponent<Canvas>();
            eventPanelButton = GameObject.Find("Event Panel Button");

            // data objects
            gameDataRef = GameObject.Find("GameManager").GetComponent<GlobalGameData>(); // get global game data (date, location, version, etc)
            gCameraRef = GameObject.Find("Main Camera").GetComponent<GalaxyCameraScript>(); // get global camera script

            if (!starDataTextLine)
            {
                Debug.LogError("This script requires a text object!");
                enabled = false;
                return;
            }
        }
 void Awake()
 {
     gDataRef = GameObject.Find("GameManager").GetComponent<GalaxyData>(); // set the reference
     galCameraRef = GameObject.Find("Main Camera").GetComponent<GalaxyCameraScript>();
 }