AxibugEmuOnline/AxibugEmuOnline.Client/Assets/Script/NesCoreProxy.cs
2024-07-18 15:14:45 +08:00

29 lines
647 B
C#

using AxibugEmuOnline.Client.Input;
using AxibugEmuOnline.Client.Manager;
using MyNes.Core;
using System.IO;
using UnityEngine;
using UnityEngine.UI;
namespace AxibugEmuOnline.Client
{
public class NesCoreProxy : MonoBehaviour
{
public UguiVideoProvider VideoCom;
public AudioProvider AudioCom;
public InputManager InputManager;
private AppEmu m_appEnum = new AppEmu();
private void Start()
{
m_appEnum.Init(VideoCom, AudioCom, InputManager);
}
private void OnDestroy()
{
m_appEnum.Dispose();
}
}
}