Пример #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);
    }
Пример #2
0
 //----------------------------------------------------------------------------------------------
 public static void Initialize()
 {
     Units            = new List <Unit>();
     gameController   = GameObject.Find("Game Controller").GetComponent <GameController>();
     canvasReferences = gameController.CanvasReferences;
 }