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
//move.ts | |
import Test from "./test"; | |
private _test:Test; | |
public onStart(): void { | |
console.log(this._test._testNumber); | |
this._test.showLog(); | |
} | |
// | |
//test.ts | |
export default class Test extends Node { | |
public _testNumber:number; | |
public onInitialize(): void { | |
this._testNumber=3; | |
// ... | |
} | |
public showLog:void(){ | |
console.log("showing log"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment