WXMC/.svn/pristine/50/508bf95fa404f5a5786ee068d022e3afedeb2191.svn-base
2024-12-04 16:18:46 +08:00

39 lines
800 B
Plaintext

using UnityEngine;
using System.Collections;
public class UISettingsPopup : MonoBehaviour
{
public SceneTransition toMap;
public void GoToMap()
{
AudioManager.instance.ButtonClickAudio();
toMap.PerformTransition();
}
public void Replay()
{
AudioManager.instance.ButtonClickAudio();
Configure.instance.autoPopup = LevelLoader.instance.level;
toMap.PerformTransition();
}
public void ButtonClickAudio()
{
AudioManager.instance.ButtonClickAudio();
}
public void CloseButtonClick()
{
AudioManager.instance.ButtonClickAudio();
if (GameObject.Find("Board"))
{
GameObject.Find("Board").GetComponent<Board>().state = GAME_STATE.WAITING_USER_SWAP;
}
}
}