コード例 #1
0
ファイル: AudioManager.cs プロジェクト: qipa/FMODforUnity
    void Awake()
    {
        audioTimeofday     = GameObject.FindObjectOfType <AudioTimeofday> ();
        audioPlayerActions = GameObject.FindObjectOfType <AudioPlayerActions> ();
        audioEventATrigger = GameObject.FindObjectOfType <AudioEventATrigger> ();
        audioEventBTrigger = GameObject.FindObjectOfType <AudioEventBTrigger> ();
        material           = 1;

        //Here we instantiate the Fmod-event and associate it with the public string which specifies what event we want to call.
        FmodFootstepEv = FMODUnity.RuntimeManager.CreateInstance(FmodFootstep);

        FmodFootstepEv = FMODUnity.RuntimeManager.CreateInstance(FmodBanana);
    }