Ejemplo n.º 1
0
    void Start()
    {
        m_enemyMgr = EnemyManager.Get();
        m_playerMgr = PlayerManager.Get();
        m_gestureHandler = InputManager.Get();

        m_gestureStart = false;
        m_beginFinisher = false;

        m_gestureState = GestureState.START;
        m_phase = BattlePhase.START;

        gaugeCount = 0;

        m_win = true;

        Service.Init();
        m_HUDService = Service.Get<HUDService>();
        m_HUDService.StartScene();

        // Create Battle HUD
        m_HUDService.CreateBattleHUD();
        m_HUDService.ShowBottom(false);
        m_HUDService.HUDControl.SetSpecialEnable(false);

        // Create Sound Service
        m_soundService = Service.Get<SoundService>();
        m_soundService.PreloadSFXResource(new string[13]{"attack01", "attack02", "attack03",
                                                            "countdown", "enemyattack", "finalstrokeappear",
                                                            "gaugefull", "magicnotecorrect", "playermoveattack",
                                                            "sceneswish", "supermove", "win", "LadyKnight_Shine"});

        m_BGM = Resources.Load("Music/" + m_bgmMusic) as AudioClip;
        m_SPECIAL = Resources.Load("Music/supermove_jingle" ) as AudioClip;
        m_soundService.PlayMusic(m_BGM, true);
        // Create Battle HUD

        if (nextBattleArea == 1) {
            m_bgTexture.mainTexture = Resources.Load ("Texture/BG_battle3") as Texture;
        }
        else if (nextBattleArea == 2) {
            m_bgTexture.mainTexture = Resources.Load ("Texture/BG_battle2") as Texture;
        }
    }
Ejemplo n.º 2
0
    //    static Quest currentQuest; //multiple sceneFiles in one scene later
    // Use this for initialization
    void Start()
    {
        Service.Init();
        m_hudService = Service.Get<HUDService>();
        m_hudService.StartScene();

        m_hudService.ShowBottom (true);

        choiceList = new List<QuestChoiceOption> ();
        charaInSceneCount = 0;

        playerChara.PlayIdleAnim ();
        //		LoadScene ("TextData/Quest2");
        if (nextSceneID == -1) {
            LoadScene (sceneFiles [firstQuest]);
            nextSceneID = firstQuest;
        }
        else
            LoadScene (sceneFiles [nextSceneID]);

        foreach (GameObject obj in sceneFXContainer)
            obj.SetActive (false);

        sceneFXContainer [nextSceneID].SetActive (true);

        switch (nextSceneID){
        case 0:
        {
            m_bgm = Resources.Load("Music/room") as AudioClip;
        }
            break;
        case 1:
            m_bgm = Resources.Load ("Music/outside") as AudioClip;
            break;
        case 2:
        {
            m_bgm = Resources.Load("Music/shopping") as AudioClip;
        }
            break;

        }
        m_soundService = Service.Get<SoundService>();
        m_soundService.PlayMusic(m_bgm, true);
        InitializeScene ();

        isDisplayingBattleStart = false;

        m_hudService.HUDControl.EnableRanking (true);
    }
Ejemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        Service.Init();
        m_hudService = Service.Get<HUDService>();
        m_hudService.StartScene();

        m_hudService.HUDControl.ShowRankingGrp (false);

        costumeBGM = Resources.Load("Music/costumemusic") as AudioClip;
        armoryBGM = Resources.Load ("Music/weapon_bgm") as AudioClip;

        m_soundService = Service.Get<SoundService>();
        m_soundService.PlayMusic(costumeBGM, true);

        PutTestData ();

        currentGroupID = costumeGroupID = 0;

        _l2dModel.LoadProfile ();
        _l2dModel.GetModel ().StopBasicMotion (true);
        _l2dModel.PlayAnimation ("COSTUME_IDLE");
    }
Ejemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        Service.Init();
        Service.Get<HUDService>().StartScene();
        //		_newsDataList = new List<NewsDataItem> ();

        m_bgm = Resources.Load("Music/headlinesmusic") as AudioClip;
        m_soundService = Service.Get<SoundService>();
        m_soundService.PlayMusic(m_bgm, true);

        //		InitializeDummy ();
        InitializeNews ();
    }