コード例 #1
0
    private void Start()
    {
        //StartTimer();
        SoundyManager.StopAllSounds();
        SoundyManager.Play("Music", "GameMusic");

        Inventory.onInventoryChange += OnInventoryItemsChange;
    }
コード例 #2
0
 public override void OnEnter()
 {
     if (DebugMode.Value)
     {
         DDebug.Log("Playmaker - State Name [" + State.Name + "] - Stop All Sounds");
     }
     SoundyManager.StopAllSounds();
     if (FinishImmediately.Value)
     {
         Finish();
     }
 }
コード例 #3
0
        public override void OnEnter(Node previousActiveNode, Connection connection)
        {
            base.OnEnter(previousActiveNode, connection);
            if (ActiveGraph == null)
            {
                return;
            }

            switch (SoundAction)
            {
            case SoundActions.Play:
                if (HasSound)
                {
                    SoundyManager.Play(SoundData);
                }
                break;

            case SoundActions.Stop:
                SoundyManager.StopAllSounds();
                break;

            case SoundActions.Pause:
                SoundyManager.PauseAllSounds();
                break;

            case SoundActions.Unpause:
                SoundyManager.UnpauseAllSounds();
                break;

            case SoundActions.Mute:
                SoundyManager.MuteAllSounds();
                break;

            case SoundActions.Unmute:
                SoundyManager.UnmuteAllSounds();
                break;

            default: throw new ArgumentOutOfRangeException();
            }

            if (!FirstOutputSocket.IsConnected)
            {
                return;
            }
            ActiveGraph.SetActiveNodeByConnection(FirstOutputSocket.FirstConnection);
        }
コード例 #4
0
 private void Start()
 {
     SoundyManager.StopAllSounds();
     SoundyManager.Play("Music", "MenuMusic");
 }