コード例 #1
0
ファイル: HubManager.cs プロジェクト: spip2001/NierProtomata
    // Use this for initialization
    void Start()
    {
        GameObject.FindGameObjectWithTag("Player").transform.position     = GameManager.GetPlayerLastPositionInHub();
        GameObject.FindGameObjectWithTag("MainCamera").transform.position = GameManager.GetCameraLastPositionInHub();

        nbFiles = GameObject.FindGameObjectsWithTag("File").Length;

        dta = GameObject.FindGameObjectWithTag("Dialog").GetComponent <DialogTextAppear>();

        if (GameManager.NeverPlayed())
        {
            dta.text = "-- Logiciel de piratage et de réparation M0-GL1 initialisé\r\nMission : recherche de la cause du dysfonctionnement du serveur WILLY-01\r\n......\r\nSecteur défectueux détecté à l'adresse 0x05BDFF6E\r\n.....\r\n" + nbFiles + " blocs à analyser\r\nDébut de procédure";
            dta.ShowText();
        }
        else if (GameManager.WasVictory())
        {
            dta.text  = "Bloc " + GameManager.GetLastCompletedLevel() + " réparé";
            dta.text += "\r\n" + (nbFiles - GameManager.GetNbCompletedLevels()) + " bloc(s) restant(s)";
            dta.ShowText();
        }
        else if (GameManager.IsFoxMode())
        {
            dta.text  = "Destruction de RENARD_1.0 par virus AT-0\r\n";
            dta.text += "\r\nMessage personnel au joueur : t'es vraiment mauvais...";
            dta.ShowText();
        }
        else
        {
            dta.text = "Réparation du bloc : Echec";
            dta.ShowText();
        }
    }
コード例 #2
0
    // Use this for initialization
    void Start () {
        if (GameManager.GetNbCompletedLevels() == GameObject.FindGameObjectsWithTag("File").Length)
        {
            transform.Find("Mur").gameObject.SetActive(false);
        }

        dta = GameObject.FindGameObjectWithTag("Dialog").GetComponent<DialogTextAppear>();
    }