コード例 #1
0
        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);
        }
コード例 #2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
コード例 #3
0
    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;
    }
コード例 #4
0
ファイル: IntroManager.cs プロジェクト: jono-m/GameJams
    // 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.";
    }
コード例 #5
0
 void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
コード例 #6
0
 // 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");
 }
コード例 #7
0
    void Start()
    {
        textComponent = this.GetComponent <Text>();
        im            = FindObjectOfType <IntroManager>();

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

        Find_Obj();
        AddListener();

        BackEndAuthManager.Init();
        SocalManager.Init();
    }
コード例 #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);
 }
コード例 #10
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != null)
     {
         Destroy(gameObject);
     }
 }
コード例 #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();
    }
コード例 #12
0
ファイル: IntroManager.cs プロジェクト: Viimur/Cuculiman
    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();
    }
コード例 #13
0
ファイル: CMS_Control.cs プロジェクト: Haru960/My_base
    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);
    }
コード例 #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()
            );
    }
コード例 #15
0
        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);
        }
コード例 #16
0
 void Start()
 {
     manager = GameObject.Find("theManager").GetComponent <IntroManager>();
 }
コード例 #17
0
ファイル: Menu.cs プロジェクト: CPau/Tetris-of-the-Colossus
 void Start()
 {
     intro_m = GameObject.Find("/IntroManager").GetComponent <IntroManager>();
     ggm     = GameObject.Find("/GlobalGM").GetComponent <GlobalGM>();
 }
コード例 #18
0
 void Start()
 {
     canGoToNextSlide = true;
     introManager     = gameObject.GetComponent <IntroManager>();
 }
コード例 #19
0
ファイル: CamController.cs プロジェクト: vrp56/DesuVult
 // Start is called before the first frame update
 void Start()
 {
     manager = GameObject.FindObjectOfType <IntroManager>();
     StartCoroutine(Transform(actions));
     StartCoroutine(Rotate(actions));
 }
コード例 #20
0
 private void Awake()
 {
     Instance = this;
     panel.SetActive(false);
 }
コード例 #21
0
 void Awake()
 {
     Instance = this;
 }
コード例 #22
0
 // Use this for initialization
 void Start()
 {
     m_intromanager = FindObjectOfType<IntroManager>();
 }
コード例 #23
0
 // Use this for initialization
 void Start()
 {
     m_intromanager = FindObjectOfType <IntroManager>();
 }
コード例 #24
0
 void Start()
 {
     intro_m = GameObject.Find("/IntroManager").GetComponent <IntroManager>();
     StartCoroutine("WaitAnimation");
 }
コード例 #25
0
ファイル: IntroManager.cs プロジェクト: FraserLee/LD46
 private void Awake()
 {
     instance = this;
 }
コード例 #26
0
 private void Start()
 {
     Battle       = false;
     introManager = IntroductionManager.GetComponent <IntroManager>();
 }
コード例 #27
0
 void Awake()
 {
     singleton = this;
 }
コード例 #28
0
ファイル: Player.cs プロジェクト: schouffy/virtualjam
 void Awake()
 {
     _gameManager = Camera.main.GetComponent<IntroManager>();
 }
コード例 #29
0
 private void Start()
 {
     introManager = FindObjectOfType <IntroManager>();
 }
コード例 #30
0
 void Awake()
 {
     introManager = GameObject.Find("IntroManager").GetComponent <IntroManager>();
 }
コード例 #31
0
 void Awake()
 {
     it = Canvas.GetComponent <IntroManager>();
 }
コード例 #32
0
 public void InitLevel()
 {
     IntroManager.InitLevel();
 }