37 lines
732 B
C#
37 lines
732 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// ÓÃÓÚ½ÓÊÕÍøÒ³¶ËµÄµ÷ÓÃ
|
|
/// </summary>
|
|
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<CameraAnimController>().OnEnterGame();
|
|
|
|
IsEnterGame = true;
|
|
}
|
|
|
|
public void HideView()
|
|
{
|
|
if (!BaseController.CanControl)
|
|
{
|
|
AudioManager.Instance.ResumeBackgroundMusic();
|
|
BaseController.CanControl = true;
|
|
}
|
|
}
|
|
} |