Created
June 28, 2018 15:34
-
-
Save philipshen/b57821efd2faca3a5a0b50d747f28249 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@property (cc.Prefab) | |
explosion: cc.Prefab = null | |
createExplosion(position: cc.Vec2) { | |
const explosion = cc.instantiate(this.explosion) | |
explosion.setPosition(position) | |
this.node.addChild(explosion) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment