37 lines
732 B
C#
37 lines
732 B
C#
|
|
using System.Collections;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using UnityEngine;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD>ڽ<EFBFBD><DABD><EFBFBD><EFBFBD><EFBFBD>ҳ<EFBFBD>˵ĵ<CBB5><C4B5><EFBFBD>
|
|||
|
|
/// </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;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|