public void Awake() { MessagerCenter.Register("RestoreWeldingBed", Reset); MessagerCenter <bool, Vector2> .Register("UpdateHitInfo", UpdateHitInfo); LoadConfig(); }
// Use this for initialization void Awake() { RConsole.OnInitConsole(""); Application.targetFrameRate = 1000; MessagerCenter.Register("InitConfig", InitConfig); MessagerCenter <bool> .Register("SetDebug", SetDebug); // MessagerCenter<bool>.Register("QCToolsOn", QCToolsOn); // MessagerCenter<bool>.Register("TruckToolsOn", QCTruckToolsOn); MessagerCenter <string> .Register("ec", ec); MessagerCenter.Broadcast("InitConfig"); //Debug.Log("初始化开始 in " + this.name); //Debug.Log("初始化开始 in " + this); }