public void StartIntro()
        {
            if (isActive)
            {
                return;
            }

            isActive = true;
            var introManager = new IntroManager(new[] {
                new Intro(Intro.PageType.First, "Start", "PTV xServer .NET\nDemo Center",
                          "PTV xServer .NET is a SDK which adds xServer functionality to .NET client applications. The PTV xServer .NET Demo Center provides "
                          + "a set of code samples to build interactive map applications with the PTV xServers. The primary component is the WpfMap "
                          + "control which is part of the PTV xServer .NET SDK. This control allows building interactive map applications with PTV "
                          + "xServers. While the technology of it is based on Windows Presentation Foundation, the SDK also provides a FormsMap control "
                          + "for easy WinForms integration.\n\nClick Next to continue the short instruction."),
                new Intro(Intro.PageType.Normal, "Connection", "Connect to your\ndesired xServers", "In the xServer tab you have the opportunity to set the connection data for the usage of "
                          + "your own xServers. If you do not have any xServers available you can use a trial-key for PTV xServer internet by checking the key "
                          + "button. The trial-key can access all test clusters like 'eu-n-test' but expires periodically. So you have to download a fresh copy "
                          + "of the PTV xServer .NET Demo Center.\n\nUsers of PTV xServer internet are able to easily connect to a specific cluster by setting "
                          + "the URL to the needed cluster like 'eu-n'. Simply uncheck the key button to use your own PTV xServer internet token."),
                new Intro(Intro.PageType.Last, "ExploreUsecases", "Explore all your possibilities", "As the PTV xServer .NET Demo Center provides "
                          + "code samples for building interactive map applications with our PTV xServers, you can explore those samples as use cases "
                          + "located on the left side of Demo Center. Just expand one tab to read the description and start it.\n\n"
                          + "For example just activate the checkbox in the 'Elementary routing' tab to show a basic routing.\n\nClick Start to explore "
                          + "the PTV xServer .NET Demo Center on your own.")
            }, location);

            introManager.StartIntro();

            introManager.HandlerCallback = (id, start) => HandlerCallback(id, start);
        }
Example #2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(gameObject);

        mapGenerator = GetComponent <MapGenerator>();
        soundManager = GetComponent <SoundManager>();
        questManager = GetComponent <QuestManager>();
        introManeger = GetComponent <IntroManager>();

        UI_StrengthBar = UI_Strength.transform.Find("Bar").gameObject.GetComponent <RectTransform>();
        UI_CourageBar  = UI_Courage.transform.Find("Bar").gameObject.GetComponent <RectTransform>();
        UI_CompleteBar = UI_Complete.transform.Find("Bar").gameObject.GetComponent <RectTransform>();

        time  = Time.time;
        state = States.TITLE;
    }
Example #4
0
    // Start is called before the first frame update
    void Awake()
    {
        if (instance != null)
        {
            Debug.LogWarning("Intro manager singleton already exists. Offender: " + this.name);
        }
        instance = this;

        if (skip)
        {
            stage = Stage.DONE;
            StartCoroutine(DoneTextTemporary());
            return;
        }

        foreach (var spawner in FindObjectsOfType <ZombieSpawner>())
        {
            spawner.enabled = false;
        }

        introCamera.SetActive(true);
        zoomToBoatCamera.SetActive(false);
        boatFollowCamera.SetActive(false);
        mainCamera.SetActive(false);
        mainGameUI.SetActive(false);
        dialogueContainer.SetActive(true);
        dialogueTextPanel.text = "There's a <color=red>zombie</color> infestation on the mainland! Your troops are needed.\nClick on a <color=#AAFFAA>soldier</color> to command.";
    }
 void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
 // Start is called before the first frame update
 void Start()
 {
     textObject      = gameObject.GetComponent <Text>();
     message         = textObject.text;
     textObject.text = "";
     MyIntroManager  = IntroManagerObject.GetComponent <IntroManager>();
     StartCoroutine("TextTyping");
 }
Example #7
0
    void Start()
    {
        textComponent = this.GetComponent <Text>();
        im            = FindObjectOfType <IntroManager>();

        //TESTING
        //textComponent.text = "";
        //StartCoroutine(BuildText());
    }
Example #8
0
    private void Awake()
    {
        instance = this;

        Find_Obj();
        AddListener();

        BackEndAuthManager.Init();
        SocalManager.Init();
    }
Example #9
0
 private void Start()
 {
     // todo: logic for selecting ending.
     managerSelected    = globalState.NetScore > 1 ? goodManager : badManager;
     loader.yarnManager = managerSelected;
     loader.gameObject.SetActive(true);
     dialogueUI.gameObject.SetActive(true);
     dialogueUI.onDialogueEnd.AddListener(() => { managerSelected.QueueNext(); });
     dialogueUI.gameObject.SetActive(false);
 }
Example #10
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != null)
     {
         Destroy(gameObject);
     }
 }
Example #11
0
    void Start()
    {
        intro = GameObject.FindObjectOfType <IntroManager>();

        // getting musics
        mainBG        = transform.FindChild("mainBackground").GetComponent <AudioSource> ();
        GM            = GameObject.Find("GameManager").GetComponent <GameManager> ();
        mainBG.volume = 0.0f;

        // triggering musics
        mainBG.Play();
    }
Example #12
0
    void Start()
    {
        GlobalOptions.language = GlobalOptions.Language.English;
        GlobalOptions.lives    = 3;

        //Importante para poder usar las funciones desde afuera
        if (im == null)
        {
            im = this.gameObject.GetComponent <IntroManager> ();
        }

        Cursor.visible = false;
        menuCanvas.transform.GetChild(0).GetComponent <Button>().Select();
    }
Example #13
0
    void Awake()
    {
        curScene = SceneManager.GetActiveScene().buildIndex;

        if (curScene == 0)
        {
            introManager = GetComponent <IntroManager>();
        }
        else if (curScene == 1)
        {
            gameManager = GetComponent <GameManager>();
        }

        Screen.sleepTimeout = SleepTimeout.NeverSleep;

        CardboardMagnetSensor.SetEnabled(true);
    }
Example #14
0
    // called when we get to the title panel
    void InitTitlePanel()
    {
        Skinning.ResetSkin(selectedSkin);

        if (titleManager == null)
        {
            Debug.LogError(debuguableInterface.debugLabel + "TitleManager component shouldn't be null. If we can't get scene references we can't do anything.");
            return;
        }

        titleManager.Init(
            () => panelManager.JumpTo(GamePhase.INTRO, () =>
        {
            introManager = FindObjectOfType <IntroManager>();
            audioProjectManager.FadeMusicOut();
        }),
            () => Application.Quit()
            );
    }
        public void StartDragDropIntro()
        {
            if (isActive)
            {
                return;
            }

            isActive = true;
            var introManager = new IntroManager(new[] {
                new Intro(Intro.PageType.Single, "Routing", "Drag & Drop Routing Demo", "To calculate a route you have to set at minimum two waypoints "
                          + "for the calculation. Simply right click in the map on the desired location and select 'Route from here' to set your start and "
                          + "click on 'Route to here' to set your destination. To extend the route you are able to add more waypoints by selecting "
                          + "'Add destination'.\nIf the minimum of two waypoints are set and the route shows up you have the oppurtunity to "
                          + "drag and drop the painted route as you like. After there are any changes to route segments they will be re-calculated.\n\n"
                          + "Click Start to explore the Drag and Drop routing use case.")
            }, location);

            introManager.StartIntro();

            introManager.HandlerCallback = (id, start) => HandlerCallback(id, start);
        }
Example #16
0
 void Start()
 {
     manager = GameObject.Find("theManager").GetComponent <IntroManager>();
 }
Example #17
0
 void Start()
 {
     intro_m = GameObject.Find("/IntroManager").GetComponent <IntroManager>();
     ggm     = GameObject.Find("/GlobalGM").GetComponent <GlobalGM>();
 }
Example #18
0
 void Start()
 {
     canGoToNextSlide = true;
     introManager     = gameObject.GetComponent <IntroManager>();
 }
Example #19
0
 // Start is called before the first frame update
 void Start()
 {
     manager = GameObject.FindObjectOfType <IntroManager>();
     StartCoroutine(Transform(actions));
     StartCoroutine(Rotate(actions));
 }
Example #20
0
 private void Awake()
 {
     Instance = this;
     panel.SetActive(false);
 }
Example #21
0
 void Awake()
 {
     Instance = this;
 }
Example #22
0
 // Use this for initialization
 void Start()
 {
     m_intromanager = FindObjectOfType<IntroManager>();
 }
Example #23
0
 // Use this for initialization
 void Start()
 {
     m_intromanager = FindObjectOfType <IntroManager>();
 }
Example #24
0
 void Start()
 {
     intro_m = GameObject.Find("/IntroManager").GetComponent <IntroManager>();
     StartCoroutine("WaitAnimation");
 }
Example #25
0
 private void Awake()
 {
     instance = this;
 }
Example #26
0
 private void Start()
 {
     Battle       = false;
     introManager = IntroductionManager.GetComponent <IntroManager>();
 }
Example #27
0
 void Awake()
 {
     singleton = this;
 }
Example #28
0
 void Awake()
 {
     _gameManager = Camera.main.GetComponent<IntroManager>();
 }
Example #29
0
 private void Start()
 {
     introManager = FindObjectOfType <IntroManager>();
 }
Example #30
0
 void Awake()
 {
     introManager = GameObject.Find("IntroManager").GetComponent <IntroManager>();
 }
Example #31
0
 void Awake()
 {
     it = Canvas.GetComponent <IntroManager>();
 }
Example #32
0
 public void InitLevel()
 {
     IntroManager.InitLevel();
 }