ios-unity/Classes_cocos/WalletEvent.cpp
cebgcontract 3181d8b0d1 sth?
2022-07-13 16:42:43 +08:00

18 lines
334 B
C++
Raw 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)(char* name, char* message);
// 注册C#的委托
void registWalletEventDelegate(void(*Emit)(char* name, char* message))
{
WalletEvent::Emit = Emit;
}