Ejemplo n.º 1
0
 protected override sealed void Init()
 {
     if (linker == null)
     {
         linker = new ReceiverLinker();
     }
     receivers = linker.Build(this);
     receivers.SetRegistered(true);
     base.Init();
 }
Ejemplo n.º 2
0
 protected virtual void OnEnable()
 {
     if (receivers == null)
     {
         if (linker == null)
         {
             linker = new ReceiverLinker();
         }
         receivers = linker.Build(this);
         receivers.SetRegistered(true);
         Create();
     }
     else
     {
         receivers.SetRegistered(true);
     }
     Enable();
 }