Created
June 19, 2018 13:15
-
-
Save philipshen/bdf9e3f6e586eaff0aed081a3d23195d 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
// Cannon.ts | |
import Game from './Game' | |
@ccclass | |
export default class Cannon extends cc.Component { | |
game: Game | |
onLoad() { | |
this.game = cc.find('/Game').getComponent('Game') | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment