Пример #1
0
    public void Start()
    {
        gridScript = GameObject.Find("UGrid").GetComponent <UGrid>();
        groupM     = GameObject.Find("Faction Manager").GetComponent <GroupManager>();
        placement  = gameObject.GetComponent <BuildingPlacement>();
        if (placement)
        {
            placement.SetGroup(group);
        }
        GUIManager manager = gameObject.GetComponent <GUIManager>();

        if (manager)
        {
            manager.group = groupM.groupList[group].GetComponent <Group>();
        }
        guiManager = gameObject.GetComponent <GUIManager>();
        GameObject obj = GameObject.Find("MiniMap");

        if (obj)
        {
            map = obj.GetComponent <MiniMap>();
        }
        test = Camera.main.GetComponent <GUILayer>();
    }
 public void Start()
 {
     gridScript = GameObject.Find("UGrid").GetComponent<UGrid>();
     groupM = GameObject.Find("Faction Manager").GetComponent<GroupManager>();
     placement = gameObject.GetComponent<BuildingPlacement>();
     if(placement)
         placement.SetGroup(group);
     GUIManager manager = gameObject.GetComponent<GUIManager>();
     if(manager)
         manager.group = groupM.groupList[group].GetComponent<Group>();
     guiManager = gameObject.GetComponent<GUIManager>();
     GameObject obj = GameObject.Find("MiniMap");
     if(obj)
         map = obj.GetComponent<MiniMap>();
     test = Camera.main.GetComponent<GUILayer>();
 }