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

31 lines
695 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);
m_appEnum.LoadGame("kirby.nes");
}
private void OnDestroy()
{
m_appEnum.Dispose();
}
}
}