Comments (2)
add_event 直接创建一个 js 对象包装 add/remove 方法;
静态event 直接在 class object 上创建;
非静态event 在 constructor 中创建;
from duktape-unity.
public class Sample {
public static event Action test;
}
let cb = function () {
console.log("hello");
};
Sample.test.on(cb);
Sample.test.off(cb);
from duktape-unity.
Related Issues (20)
- byte[] 默认处理成 fixed_buffer
- 非静态event不能放在constructor中创建 HOT 1
- 如果导出的目标类型定义了implicit转换, duk_push_any可能会出问题 HOT 1
- 编辑器退出时 duktape destroy 导致进程卡死
- integrate bluebirdjs HOT 1
- optimize the implementation of setTimeout/setInterval
- optimize the inspection of native object in debugger
- 支持typescript的调试器 HOT 2
- customizable module loader
- 在没有开启调试器编译选项时调用相关接口会卡死
- 封装http请求
- 异步计算任务
- 启动失败时没有抛出任何异常
- optimized memory allocator for duktape
- Suggest implement timer in C to remove C# side GC Alloc HOT 1
- 捕获异常时调用C#导致崩溃
- C# 中间接存在 duk_throw
- 有没有办法在js中自动获取运行该js的GameObject HOT 1
- develop 分支使用tlsf分配器的版本尚未编译 ios/macos 动态库, 无法在 ios/macos 运行
- 成员变量有自定义类数组导出后运行崩溃 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duktape-unity.