| 1234567891011121314151617181920212223 |
- using System.Collections;
- using System.Collections.Generic;
- using ToneTuneToolkit.Common;
- using UnityEngine;
- using System.Runtime.InteropServices;
- public class JSCommunicator : SingletonMaster<JSCommunicator>
- {
- [DllImport("__Internal")] public static extern void PuzzleReady();
- [DllImport("__Internal")] public static extern void PuzzleDebug(string value);
- [DllImport("__Internal")] public static extern void PuzzleFinished();
- public void StartGame(string message)
- {
- Debug.Log(@$"[JSC] Game type: {message}");
- GameManager.Instance.StartGame(message);
- }
- public void ResetGame()
- {
- GameManager.Instance.Reset();
- }
- }
|