//---------------------------------------------------------------------------------------------- public static void Initialize() { unitInfoBox = GameObject.Find("Unit Info Box").GetComponent <UnitInfoBox>(); canvasReferences = GameObject.Find("Canvas").GetComponent <CanvasReferences>(); gameController = GameObject.Find("Game Controller").GetComponent <GameController>(); hoverHighlight = PrefabUtility.InstantiatePrefab(gameController.HoverHighlightPrefab) as GameObject; debugRouteObjs = new List <GameObject>(); canvasReferences.lowerLeftFrame.SetActive(false); hoverHighlight.SetActive(false); }
//---------------------------------------------------------------------------------------------- public static void Initialize() { Units = new List <Unit>(); gameController = GameObject.Find("Game Controller").GetComponent <GameController>(); canvasReferences = gameController.CanvasReferences; }