cocos_android/Classes/WalletEvent.cpp
2022-07-20 16:43:02 +08:00

16 lines
356 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// WalletEvent.cpp
// Unity-iPhone
//
// Created by zhl on 2022/7/13.
//
#include "WalletEvent.h"
// 定义函数指针用来接受C#的委托
void(*WalletEvent::Emit)(const char* name, const char* message);
// 注册C#的委托
void registWalletEventDelegate(void(*Emit)(const char* name, const char* message))
{
WalletEvent::Emit = Emit;
}