internal static void Instance(Node parent, GMData.Run.Pop gmObj) { var panel = (PopDetail)ResourceLoader.Load <PackedScene>(path).Instance(); panel.gmObj = gmObj; parent.AddChild(panel); }