mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
replaced NotificationCenter with Nc
This commit is contained in:
parent
da913c4709
commit
672a46efa8
35 changed files with 160 additions and 161 deletions
|
|
@ -5,7 +5,7 @@ define([
|
|||
"Lib/Utilities/NotificationCenter"
|
||||
],
|
||||
|
||||
function (Parent, Item, Box2D, NotificationCenter) {
|
||||
function (Parent, Item, Box2D, Nc) {
|
||||
|
||||
function Doll(physicsEngine, uid, player) {
|
||||
Parent.call(this, physicsEngine, uid, player);
|
||||
|
|
@ -63,7 +63,7 @@ function (Parent, Item, Box2D, NotificationCenter) {
|
|||
self.player.addDamage(damage.Length() * 2, player);
|
||||
}
|
||||
|
||||
NotificationCenter.trigger("engine/addToWorldQueue", callback)
|
||||
Nc.trigger("engine/addToWorldQueue", callback)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ define([
|
|||
"Lib/Utilities/NotificationCenter"
|
||||
],
|
||||
|
||||
function (Parent, Settings, NotificationCenter) {
|
||||
function (Parent, Settings, Nc) {
|
||||
|
||||
function RagDoll(physicsEngine, uid, options) {
|
||||
this.scheduledForDestruction = false;
|
||||
|
|
@ -35,7 +35,7 @@ function (Parent, Settings, NotificationCenter) {
|
|||
};
|
||||
|
||||
RagDoll.prototype.destroy = function() {
|
||||
NotificationCenter.trigger("broadcastGameCommand", 'removeGameObject', {
|
||||
Nc.trigger("broadcastGameCommand", 'removeGameObject', {
|
||||
type: 'animated',
|
||||
uid: this.uid
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue