Пример #1
0
    void LevelFinishedLoading(Scene previousScene, Scene activeScene)
    {
        if (activeScene.name != AntwerpMap)
        {
            popupScript = GameObject.FindGameObjectWithTag("PopupController").GetComponent <PopupController>();
            gmScript.GetGameObjectsFromScene();
            gmScript.SetCoinsCollectedInLevel();
        }
        else if (activeScene.name == AntwerpMap)
        {
            locationPopupCanvas = GameObject.FindGameObjectWithTag("LocationPopupCanvas").GetComponent <CanvasGroup>();
            locationPopupScript = GameObject.FindGameObjectWithTag("LocationPopup").GetComponent <LocationPopup>();

            levelConScript.SetLevelsFromArray();
            levelConScript.CheckLevelUnlocked();
            if (tempLevelFinished)
            {
                levelConScript.GetLevelUnlocker(tempLevel); // all level related code only in AntwerpMap!
                tempLevelFinished = false;
            }

            gmScript.UpdateTotalCoinUI();
        }
    }
 private void PopulateCompanyDropdown(int countryId, int companyTypeId)
 {
     LocationPopup.AddCompanyDropDownItems(countryId, companyTypeId, ddlCompany, true);
 }
Пример #3
0
 private void PopulateCompanyDropdown(int countryId, int companyTypeId, DropDownList ddl, bool includeAll = false)
 {
     LocationPopup.AddCompanyDropDownItems(countryId, companyTypeId, ddl, includeAll);
 }
    void Start()
    {
        // hide the canvas until runtime because it's really annoying in the scene view
        Canvas.SetActive(true);
        canvas = Canvas;

        // setup everything related to the ui
        GamepadPopup = GameObject.Find("GamepadPopup").GetComponent<GamepadPopup>();
        LocationPopup = GameObject.Find("LocationPopup").GetComponent<LocationPopup>();
        CinematicPopup = GameObject.Find("CinematicPopup").GetComponent<CinematicPopup>();
        LocatorPopup = GameObject.Find("LocatorPopup").GetComponent<LocatorPopup>();
        DeathPopup = GameObject.Find("DeathPopup").GetComponent<DeathPopup>();
        EndingPopup = GameObject.Find("EndingPopup").GetComponent<EndingPopup>();
    }