Exemplo n.º 1
0
        public Dialogue(string scene_id, CRTScreen sc, Camera mc)
        {
            scene = SerializedScenes.szScenes.getScene(scene_id);
            if (scene == null)
            {
                Debug.Log("ERROR: COULD NOT FIND SCENE " + scene_id);
                return;
            }
            char1 = SerializedScenes.szScenes.getCharacter(scene.char1_id);
            char2 = SerializedScenes.szScenes.getCharacter(scene.char2_id);
            crt   = SerializedScenes.szScenes.getCRTSettings(scene.CRTSettings_id);
            if (crt == null)
            {
                Debug.Log("CANNOT FIND CRT SETTINGS " + scene.CRTSettings_id);
            }

            crtScreen          = sc;
            GameSettings.state = GameSettings.GameState.Dialogue;
            mainCam            = mc;

            orgSettings = sc.settings;

            sc.settings = crt;
            CreateObjects();
            CreateAudio(scene.music);
        }
Exemplo n.º 2
0
        public void Initialize()
        {
//            Test();
            map = Map2D.Load(sz.mapName);
            dMap.Initialize(map, 30, 20, 1, 1);
            GameObject ec = GameObject.Find("EffectsCamera");

            if (ec != null)
            {
                crtScreen          = ec.GetComponent <CRTScreen>();
                crtScreen.settings = SerializedScenes.szScenes.getCRTSettings(sz.crtSettings_id);
            }
        }