Exemplo n.º 1
0
    //----------------------------------------------------------------------------------------------
    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);
    }
Exemplo n.º 2
0
 //----------------------------------------------------------------------------------------------
 public static void Initialize()
 {
     Units            = new List <Unit>();
     gameController   = GameObject.Find("Game Controller").GetComponent <GameController>();
     canvasReferences = gameController.CanvasReferences;
 }