This commit is contained in:
tothvillar
2026-07-09 15:04:14 +08:00
commit e896e2ead4
1180 changed files with 115132 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
cc.Class({
extends: cc.Component,
properties: {},
onLoad: function () {},
start: function () {
this.onActivatePhysicsWorld();
},
onActivatePhysicsWorld: function () {
var e = cc.director.getPhysicsManager();
e.enabled = true;
e.gravity = cc.v2(0, -2e3);
},
onActivateCollisionWorld: function () {
cc.director.getCollisionManager().enabled = true;
}
});