Exemplo n.º 1
0
    private void Play(GameObject controllingObject, InAudioNode audioNode, InPlayer player, float fade, LeanTweenType fadeType)
    {
        ObjectAudioList tupleList = GetValue(GOAudioNodes, controllingObject);

        RuntimeInfo runtimeInfo = runtimeInfoPool.GetObject();

        tupleList.InfoList.Add(runtimeInfo);
        runtimeInfo.Node      = audioNode;
        runtimeInfo.Player    = player;
        runtimeInfo.ListIndex = tupleList.InfoList.Count - 1;
        runtimeInfo.PlacedIn  = tupleList;

        player._internalPlay(audioNode, controllingObject, runtimeInfo, fade, fadeType);
    }
Exemplo n.º 2
0
        private void Play(GameObject controllingObject, InAudioNode audioNode, InPlayer player, float fade, LeanTweenType fadeType, AudioParameters parameters)
        {
            var runtimeInfo = PreparePlay(controllingObject, audioNode, player);

            player._internalPlay(audioNode, controllingObject, runtimeInfo, fade, fadeType, parameters);
        }
Exemplo n.º 3
0
        private void Play(GameObject controllingObject, InAudioNode audioNode, InPlayer player, float fade, LeanTweenType fadeType, AudioParameters parameters)
        {
            var runtimeInfo = PreparePlay(controllingObject, audioNode, player);

            player._internalPlay(audioNode, controllingObject, runtimeInfo, fade, fadeType, parameters);
        }