using System.Collections;
using System.Collections.Generic;
using UnityEngine;
///
/// 用于接收网页端的调用
///
public class H5Receiver : MonoBehaviour
{
public static bool IsEnterGame;
//private void Update()
//{
// if(Input.GetKeyDown(KeyCode.T))
// {
// EnterGame();
// }
//}
public void EnterGame()
{
AudioManager.Instance.PlayBg(0);
FindObjectOfType().OnEnterGame();
IsEnterGame = true;
}
public void HideView()
{
if (!BaseController.CanControl)
{
AudioManager.Instance.ResumeBackgroundMusic();
BaseController.CanControl = true;
}
}
}