SceneManager更改为Core继承egret.DisplayContainer
This commit is contained in:
@@ -7,6 +7,20 @@ module es {
|
||||
private _minDepth: number;
|
||||
private _maxDepth: number;
|
||||
|
||||
public get height(){
|
||||
return this._height;
|
||||
}
|
||||
public set height(value: number){
|
||||
this._height = value;
|
||||
}
|
||||
|
||||
public get width(){
|
||||
return this._width;
|
||||
}
|
||||
public set width(value: number){
|
||||
this._width = value;
|
||||
}
|
||||
|
||||
public get aspectRatio(){
|
||||
if ((this._height != 0) && (this._width != 0))
|
||||
return (this._width / this._height);
|
||||
|
||||
Reference in New Issue
Block a user