Пример #1
0
    // Use this for initialization
    void Start()
    {
        serverErrorText = GameObject.Find("TextServerError").GetComponent <Text>();
        SceneChanger changer = gameObject.GetComponent <SceneChanger>();

        changer.FadeSceneOut(2f);
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        SceneChanger changer = gameObject.GetComponent <SceneChanger>();

        changer.FadeSceneOut(2f);

        gameStatus = SaveSystem.LoadGameStatus();

        Environment environment = new Environment();

        Debug.Log(Environment.instance.GetPressIntroText());
        textObject.GetComponent <Text>().text = Environment.instance.GetPressIntroText();
    }
Пример #3
0
    // Use this for initialization
    void Start()
    {
        SceneChanger changer = gameObject.GetComponent <SceneChanger>();

        changer.FadeSceneOut(2f);

        Text welcomeText = firstWelcomeText.GetComponent <Text>();

        string nickName = ElfStatus.currentUser.NickName;

        Debug.Log(ElfStatus.currentScene);

        if (string.IsNullOrEmpty(ElfStatus.currentScene))
        {
            welcomePanel.SetActive(true);
            welcomeText.text = "!Bienvenido " + nickName + "!";
        }
        else
        {
            welcomeText.text = "!Hola de nuevo " + ElfStatus.currentUser.NickName + "!";
            continuePanel.SetActive(true);
        }
    }