Пример #1
0
    // Use this for initialization
    void Start()
    {
        dataFolder = Application.dataPath+"/" + GData.dataResultsPath;
        Debug.Log("dataFolder:"+dataFolder);

        // setup play mode
        if (playMode == GData.PlayMode.Read_From_GData)
        {
            playMode = GData.playMode;
        }
        else
        {
            GData.playMode = playMode;
        }

        missionSys = GameObject.FindObjectOfType<MissionSystem>();

        mainUI = GameObject.FindObjectOfType<MainUI>();

        // according to the play mode, select a data collecter
        switch (playMode)
        {
        case GData.PlayMode.Free_Style:
        {
            db = ScriptableObject.CreateInstance<DataBase>();

            mainUI.mission_description.text
                = "<size=24><b>Mission Description:</b></size>\n" +
                    "        Free Looking.";

            string str = "<b>Free Looking</b>\n" ;
                //+ "Please go back to Main Menu by Ctrl + U.";
            mainUI.SetTips(str);
            }
            break;

        }
    }