//开始执行
    public void Startup(RecordUI r)
    {
        Debug.Log("Startup()函数,发送消息EventsEnum.STARTUP到RecordUI的UI总控制那里");
        SendNotification(EventsEnum.STARTUP, r);

        SendNotification(EventsEnum.STARTRECORD);
    }
    public override void Execute(INotification notification)
    {
        Debug.Log("执行StartupCommand.Execute()的函数");

        Facade.RegisterProxy(new RecordProxy());

        RecordUI r = notification.Body as RecordUI;

        Facade.RegisterMediator(new UserRecordMediator(r.myRecord));
    }
示例#3
0
 public void Init()
 {
     Myself = this;
     gameObject.SetActive(true);
     gameObject.SetActive(false);
 }