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;
        }
    }