import { Laya3D } from "Laya3D" ; import { Laya } from "Laya" ; import { CameraMoveScript } from "../common/CameraMoveScript" ; import { Camera } from "laya/d3/core/Camera" ; import { MeshSprite3D } from "laya/d3/core/MeshSprite3D" ; import { Sprite3D } from "laya/d3/core/Sprite3D" ; import { BlinnPhongMaterial } from "laya/d3/core/material/BlinnPhongMaterial" ; import { Scene3D } from "laya/d3/core/scene/Scene3D" ; import { Stage } from "laya/display/Stage" ; import { Handler } from "laya/utils/Handler" ; import { Stat } from "laya/utils/Stat" ; import { Browser } from "laya/utils/Browser" ; export class AnimationTestNotCom { constructor ( ) { Laya3D . init ( 0 , 0 ) ; Stat . show ( ) ; Laya . stage . scaleMode = Stage . SCALE_FULL ; Laya . stage . screenMode = Stage . SCREEN_NONE ; if ( Browser . onAndroid ) { Scene3D . load ( "../../../../res/threeDimen/scene/LayaScene_DudeNotConpress/Android/layaScene.ls" , Handler . create ( null , function ( scene ) : void { ( < Scene3D > Laya . stage . addChild ( scene ) ) ; var camera = ( < Camera > scene . getChildByName ( "Main Camera" ) ) ; camera . addComponent ( CameraMoveScript ) ; } ) ) ; } else if ( Browser . onIOS ) { Scene3D . load ( "../../../../res/threeDimen/scene/LayaScene_DudeNotConpress/IOS/layaScene.ls" , Handler . create ( null , function ( scene ) : void { ( < Scene3D > Laya . stage . addChild ( scene ) ) ; var camera = ( < Camera > scene . getChildByName ( "Main Camera" ) ) ; camera . addComponent ( CameraMoveScript ) ; } ) ) ; } else { Scene3D . load ( "../../../../res/threeDimen/scene/LayaScene_DudeNotConpress/Conventional/layaScene.ls" , Handler . create ( null , function ( scene ) : void { ( < Scene3D > Laya . stage . addChild ( scene ) ) ; var camera = ( < Camera > scene . getChildByName ( "Main Camera" ) ) ; camera . addComponent ( CameraMoveScript ) ; } ) ) ; } } }