Created
July 17, 2022 16:00
-
-
Save flushpot1125/6252a443725b6fc96a01518e124896cb 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
//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