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
import { FairyGUI } from "csharp"; | |
import View, { Bind, Component } from "../common/fairygui"; | |
// ${pakageName/componentName} | |
@Component("home/HomePage") | |
export class LandPage extends View { | |
@Bind//使用跟编辑器里相同的名字进行绑定普通组件 | |
public nameTxt:FairyGUI.GLabel | |
//@Trans 绑定特效 |
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
class_name BinaryHeap | |
var items:Array = [] | |
var sort_func:Callable | |
func _init(initial_items=null, custom_sort=null): | |
if custom_sort != null: | |
sort_func = custom_sort | |
else: | |
sort_func = time_sort_func |