Пример #1
0
    void Awake()
    {
        fm = GameObject.Find("zFoxSoundManager").GetComponent <zFoxSoundManager>();

        fm.CreateGroup("BGM");
        fm.SoundFolder        = "Sounds/BGM/";
        BGM_LOGO              = fm.LoadResourceSound("BGM", "Logo");
        BGM_TITLE             = fm.LoadResourceSound("BGM", "Title");
        BGM_HISCORE           = fm.LoadResourceSound("BGM", "HiScore");
        BGM_HISCORE_RANKIN    = fm.LoadResourceSound("BGM", "HiScore_Rankin");
        BGM_STAGEA            = fm.LoadResourceSound("BGM", "StageA");
        BGM_STAGEB            = fm.LoadResourceSound("BGM", "StageB");
        BGM_STAGEB_ROOMSAKURA = fm.LoadResourceSound("BGM", "StageB_RoomSakura");
        BGM_BOSSA             = fm.LoadResourceSound("BGM", "BossA");
        BGM_BOSSB             = fm.LoadResourceSound("BGM", "BossB");
        BGM_ENDING            = fm.LoadResourceSound("BGM", "Ending");

        fm.CreateGroup("SE");
        fm.SoundFolder = "Sounds/SE/";

        SE_MENU_OK     = fm.LoadResourceSound("SE", "SE_Menu_Ok");
        SE_MENU_CANCLE = fm.LoadResourceSound("SE", "SEMU_Menu_Cancel");

        SE_ATK_A1       = fm.LoadResourceSound("SE", "SE_ATK_A1");
        SE_ATK_A2       = fm.LoadResourceSound("SE", "SE_ATK_A2");
        SE_ATK_A3       = fm.LoadResourceSound("SE", "SE_ATK_A3");
        SE_ATK_B1       = fm.LoadResourceSound("SE", "SE_ATK_B1");
        SE_ATK_B2       = fm.LoadResourceSound("SE", "SE_ATK_B2");
        SE_ATK_B3       = fm.LoadResourceSound("SE", "SE_ATK_B3");
        SE_ATK_ARIAL    = fm.LoadResourceSound("SE", "SE_ATK_Arial");
        SE_ATK_SYURIKEN = fm.LoadResourceSound("SE", "SE_ATK_Syuriken");

        SE_HIT_A1 = fm.LoadResourceSound("SE", "SE_HIT_A1");
        SE_HIT_A2 = fm.LoadResourceSound("SE", "SE_HIT_A2");
        SE_HIT_A3 = fm.LoadResourceSound("SE", "SE_HIT_A3");

        SE_HIT_B1 = SE_HIT_A1;
        SE_HIT_B2 = SE_HIT_A2;
        SE_HIT_B3 = SE_HIT_A3;

        SE_MOV_JUMP = fm.LoadResourceSound("SE", "SE_MOV_Jump");

        SE_ITEM_KOBAN    = fm.LoadResourceSound("SE", "SE_Item_Koban");
        SE_ITEM_HYOUTAN  = fm.LoadResourceSound("SE", "SE_Item_Hyoutan");
        SE_ITEM_MAKIMONO = fm.LoadResourceSound("SE", "SE_Item_Makimono");
        SE_ITEM_OHBAN    = fm.LoadResourceSound("SE", "SE_Item_Ohban");
        SE_ITEM_KEY      = fm.LoadResourceSound("SE", "SE_Item_Key");

        SE_OBJ_EXIT      = fm.LoadResourceSound("SE", "SE_OBJ_Exit");
        SE_OBJ_OPENDOOR  = fm.LoadResourceSound("SE", "SE_OBJ_OpenDoor");
        SE_OBJ_BOXBROKEN = fm.LoadResourceSound("SE", "SE_OBJ_BoxBroken");

        SE_CHECKPOINT = fm.LoadResourceSound("SE", "SE_CheckPoint");
        SE_EXPLOSION  = fm.LoadResourceSound("SE", "SE_Explosion");

        instance = this;
    }
Пример #2
0
	// === 코드 =============================================
	void Awake () {
		// 사운드
		fm = GameObject.Find("zFoxSoundManager").GetComponent<zFoxSoundManager>();

		// 배경음
		fm.CreateGroup("BGM");
		fm.SoundFolder = "Sounds/BGM/";
		BGM_LOGO 				= fm.LoadResourcesSound("BGM","Logo");
		BGM_TITLE 				= fm.LoadResourcesSound("BGM","Title");
		BGM_HISCORE 			= fm.LoadResourcesSound("BGM","HiScore");
		BGM_HISCORE_RANKIN	 	= fm.LoadResourcesSound("BGM","HiScore_Rankin");
		BGM_STAGEA 				= fm.LoadResourcesSound("BGM","StageA");
		BGM_STAGEB 				= fm.LoadResourcesSound("BGM","StageB");
		BGM_STAGEB_ROOMSAKURA 	= fm.LoadResourcesSound("BGM","StageB_RoomSakura");
		BGM_BOSSA 				= fm.LoadResourcesSound("BGM","BossA");
		BGM_BOSSB 				= fm.LoadResourcesSound("BGM","BossB");
		BGM_ENDING				= fm.LoadResourcesSound("BGM","Ending");

		// 효과음
		fm.CreateGroup("SE");
		fm.SoundFolder = "Sounds/SE/";
		SE_MENU_OK 				= fm.LoadResourcesSound("SE","SE_Menu_Ok");
		SE_MENU_CANCEL  		= fm.LoadResourcesSound("SE","SE_Menu_Cancel");

		SE_ATK_A1  				= fm.LoadResourcesSound("SE","SE_ATK_A1");
		SE_ATK_A2  				= fm.LoadResourcesSound("SE","SE_ATK_A2");
		SE_ATK_A3  				= fm.LoadResourcesSound("SE","SE_ATK_A3");
		SE_ATK_B1  				= fm.LoadResourcesSound("SE","SE_ATK_B1");
		SE_ATK_B2  				= fm.LoadResourcesSound("SE","SE_ATK_B2");
		SE_ATK_B3  				= fm.LoadResourcesSound("SE","SE_ATK_B3");
		SE_ATK_ARIAL  			= fm.LoadResourcesSound("SE","SE_ATK_Arial");
		SE_ATK_SYURIKEN  		= fm.LoadResourcesSound("SE","SE_ATK_Syuriken");

		SE_HIT_A1	  			= fm.LoadResourcesSound("SE","SE_HIT_A1");
		SE_HIT_A2	  			= fm.LoadResourcesSound("SE","SE_HIT_A2");
		SE_HIT_A3	  			= fm.LoadResourcesSound("SE","SE_HIT_A3");
#if xxx
		SE_HIT_B1	  			= fm.LoadResourcesSound("SE","SE_HIT_B1");
		SE_HIT_B2	  			= fm.LoadResourcesSound("SE","SE_HIT_B2");
		SE_HIT_B3	  			= fm.LoadResourcesSound("SE","SE_HIT_B3");
#endif
		SE_HIT_B1 = SE_HIT_A1;
		SE_HIT_B2 = SE_HIT_A2;
		SE_HIT_B3 = SE_HIT_A3;

		SE_MOV_JUMP  			= fm.LoadResourcesSound("SE","SE_MOV_Jump");

		SE_ITEM_KOBAN			= fm.LoadResourcesSound("SE","SE_Item_Koban");
		SE_ITEM_HYOUTAN			= fm.LoadResourcesSound("SE","SE_Item_Hyoutan");
		SE_ITEM_MAKIMONO		= fm.LoadResourcesSound("SE","SE_Item_Makimono");
		SE_ITEM_OHBAN			= fm.LoadResourcesSound("SE","SE_Item_Ohban");
		SE_ITEM_KEY				= fm.LoadResourcesSound("SE","SE_Item_Key");

		SE_OBJ_EXIT				= fm.LoadResourcesSound("SE","SE_OBJ_Exit");
		SE_OBJ_OPENDOOR			= fm.LoadResourcesSound("SE","SE_OBJ_OpenDoor");
		SE_OBJ_SWITCH			= fm.LoadResourcesSound("SE","SE_OBJ_Switch");
		SE_OBJ_BOXBROKEN		= fm.LoadResourcesSound("SE","SE_OBJ_BoxBroken");

		SE_CHECKPOINT			= fm.LoadResourcesSound("SE","SE_CheckPoint");
		SE_EXPLOSION			= fm.LoadResourcesSound("SE","SE_Explosion");

		instance = this;
	}
Пример #3
0
    // === 코드 =============================================
    void Awake()
    {
        // 사운드
        fm = GameObject.Find("zFoxSoundManager").GetComponent <zFoxSoundManager>();

        // 배경음
        fm.CreateGroup("BGM");
        fm.SoundFolder = "Sounds/BGM/";
        BGM_LOGO       = fm.LoadResourcesSound("BGM", "LOGO");
        BGM_MAIN       = fm.LoadResourcesSound("BGM", "MAIN");
        BGM_TITLE      = fm.LoadResourcesSound("BGM", "Title");
        //BGM_HISCORE           = fm.LoadResourcesSound("BGM","HiScore");

        BGM_STAGEA = fm.LoadResourcesSound("BGM", "PLAY");
        //BGM_STAGEB                = fm.LoadResourcesSound("BGM","StageB");

        //BGM_BOSSA                 = fm.LoadResourcesSound("BGM","BossA");

        BGM_ENDING = fm.LoadResourcesSound("BGM", "Ending");


        // 효과음
        fm.CreateGroup("SE");
        fm.SoundFolder = "Sounds/SE/";
        SE_MENU_OK     = fm.LoadResourcesSound("SE", "SE_Menu_Ok");
        SE_MENU_CANCEL = fm.LoadResourcesSound("SE", "SE_Menu_Cancel");
        SE_MENU_OPEN   = fm.LoadResourcesSound("SE", "SE_OpenCard");
        SE_MENU_OPEN_D = fm.LoadResourcesSound("SE", "SE_OpenCardDaily");
        SE_CARD_CHOICE = fm.LoadResourcesSound("SE", "SE_CARD_CHOICE");
        //SE_OpenCardDaily
        SE_MENU_ITEMBOXOPEN   = fm.LoadResourcesSound("SE", "SE_ItemBoxOpen");
        SE_MENU_ITEMCOUNTGOLD = fm.LoadResourcesSound("SE", "SE_ItemCountGold");


        SE_ATK_A1 = fm.LoadResourcesSound("SE", "SE_ATK_A1");
        SE_HIT_A1 = fm.LoadResourcesSound("SE", "SE_HIT_A1");

                #if xxx
        SE_HIT_B1 = fm.LoadResourcesSound("SE", "SE_HIT_B1");
        SE_HIT_B2 = fm.LoadResourcesSound("SE", "SE_HIT_B2");
        SE_HIT_B3 = fm.LoadResourcesSound("SE", "SE_HIT_B3");
                #endif

        //SE_HIT_B1 = SE_HIT_A1;
        //SE_HIT_B2 = SE_HIT_A2;
        //SE_HIT_B3 = SE_HIT_A3;

        SE_MOV_JUMP = fm.LoadResourcesSound("SE", "SE_MOV_Jump");


        SE_ITEM_KEY  = fm.LoadResourcesSound("SE", "SE_Item_Key");
        SE_ITEM_COIN = fm.LoadResourcesSound("SE", "SE_ITEM_COIN");

        SE_OBJ_EXIT     = fm.LoadResourcesSound("SE", "SE_OBJ_Exit");
        SE_OBJ_OPENDOOR = fm.LoadResourcesSound("SE", "SE_OBJ_OpenDoor");
        SE_OBJ_SWITCH   = fm.LoadResourcesSound("SE", "SE_OBJ_Switch");


        SE_CHECKPOINT       = fm.LoadResourcesSound("SE", "SE_CheckPoint");
        SE_EXPLOSION        = fm.LoadResourcesSound("SE", "SE_Explosion");
        SE_DESTROY          = fm.LoadResourcesSound("SE", "SE_Explosion");
        SE_OpenCard2        = fm.LoadResourcesSound("SE", "SE_OpenCard2");
        SE_CardOpenWidth    = fm.LoadResourcesSound("SE", "SE_CardOpenWidth");
        SE_Card_PickUp      = fm.LoadResourcesSound("SE", "SE_Card_PickUp");
        SE_Card_Down        = fm.LoadResourcesSound("SE", "SE_Card_Down");
        SE_START            = fm.LoadResourcesSound("SE", "SE_Start");
        SE_START_SPR        = fm.LoadResourcesSound("SE", "SE_Start_SPR");
        SE_CARD_MOVE        = fm.LoadResourcesSound("SE", "SE_CARD_MOVE");
        SE_CARD_COM         = fm.LoadResourcesSound("SE", "SE_CARD_COM");
        SE_COMBAT_LAZER2    = fm.LoadResourcesSound("SE", "SE_COMBAT_LAZER2");
        SE_COMBAT_START     = fm.LoadResourcesSound("SE", "SE_COMBAT_START");
        SE_COMBAT_OUT       = fm.LoadResourcesSound("SE", "SE_COMBAT_OUT");
        SE_COMBAT_DEFECT    = fm.LoadResourcesSound("SE", "SE_COMBAT_DEFECT");
        SE_COMBAT_IMPACT    = fm.LoadResourcesSound("SE", "SE_COMBAT_IMPACT");
        SE_SLOT_CHOICE      = fm.LoadResourcesSound("SE", "SE_SLOT_CHOICE");
        SE_CARD_APPERMOVE   = fm.LoadResourcesSound("SE", "SE_CARD_APPERMOVE");
        SE_RESULT_START     = fm.LoadResourcesSound("SE", "Angry_Bird");
        SE_CARD_PUMP        = fm.LoadResourcesSound("SE", "SE_CARD_PUMP");
        SE_CARD_DEFECTSHOOT = fm.LoadResourcesSound("SE", "SE_CARD_DEFECTSHOOT");
        SE_CARD_BTN         = fm.LoadResourcesSound("SE", "SE_CARD_BTN");
        SE_CASE_CLOSE       = fm.LoadResourcesSound("SE", "SE_CASE_CLOSE");
        SE_SHIP_HIT         = fm.LoadResourcesSound("SE", "SE_SHIP_HIT");;

        instance = this;
    }