You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
511 B
28 lines
511 B
10 years ago
|
using UnityEngine;
|
||
10 years ago
|
using System.Collections;
|
||
|
|
||
10 years ago
|
namespace Fungus
|
||
10 years ago
|
{
|
||
10 years ago
|
[CommandInfo("Audio",
|
||
|
"Stop Music",
|
||
10 years ago
|
"Stops the currently playing game music.")]
|
||
10 years ago
|
public class StopMusic : Command
|
||
10 years ago
|
{
|
||
|
public override void OnEnter()
|
||
|
{
|
||
|
MusicController musicController = MusicController.GetInstance();
|
||
|
if (musicController != null)
|
||
|
{
|
||
|
musicController.StopMusic();
|
||
|
}
|
||
|
|
||
|
Continue();
|
||
|
}
|
||
10 years ago
|
|
||
|
public override Color GetButtonColor()
|
||
|
{
|
||
|
return new Color32(242, 209, 176, 255);
|
||
|
}
|
||
10 years ago
|
}
|
||
|
|
||
|
}
|