瀏覽代碼

make getScene() public (same as h3d)

ncannasse 6 年之前
父節點
當前提交
899f3b45bc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h2d/Object.hx

+ 1 - 1
h2d/Object.hx

@@ -297,7 +297,7 @@ class Object {
 		return pt;
 		return pt;
 	}
 	}
 
 
-	function getScene() : Scene {
+	public function getScene() : Scene {
 		var p = this;
 		var p = this;
 		while( p.parent != null ) p = p.parent;
 		while( p.parent != null ) p = p.parent;
 		return Std.instance(p, Scene);
 		return Std.instance(p, Scene);