Created
December 28, 2019 04:09
-
-
Save seeya/665cbfaf7107de91a8c8f70b25f940f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
createCoins: function(e, t) { | |
t.itemType = "coin"; | |
t.itemValue = e * 10; | |
t.callback && t.target && (t.callback = t.callback.bind(t.target)); | |
return this.createItem(t); | |
}, | |
createCandys: function(e, t) { | |
t.itemType = "candy"; | |
t.itemValue = e * 6; | |
t.callback && t.target && (t.callback = t.callback.bind(t.target)); | |
return this.createItem(t); | |
}, | |
createLoves: function(e, t) { | |
t.itemValue = e * 6; | |
t.callback && t.target && (t.callback = t.callback.bind(t.target)); | |
return this.createItem(t); | |
}, | |
createStars: function(e, t) { | |
if (o.banCheating || o.palyTimeUpFlag) return cc.v2(0, 0); | |
t.itemType = "star"; | |
t.itemValue = e * 6; | |
t.callback && t.target && (t.callback = t.callback.bind(t.target)); | |
return this.createItem(t); | |
}, | |
createMemorial: function(e, t) { | |
e.itemType = "memorial"; | |
e.callback && e.target && (e.callback = e.callback.bind(e.target)); | |
var i = this.poolManager.getItemNode(e.itemType), n = i.getComponent("memorialItem").init(e, this.gardenManager, t, this); | |
if (e.parent) i.parent = e.parent; else { | |
e.garden ? i.parent = this.garden : i.parent = this.diningRoom; | |
i.x = n.x; | |
i.y = n.y; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment