示例#1
0
 void Awake()
 {
     ServInjector.Bind <T>(this);
     OnAwake();
 }
示例#2
0
 protected void OnDestroy()
 {
     ServInjector.Unbind <T>(this);
     OnDestroyEvent();
 }
示例#3
0
 public void Dispose()
 {
     ServInjector.Unbind <T>(this);
     OnDispose();
 }
示例#4
0
 private Holder()
 {
     ServInjector.Register(this);
 }
示例#5
0
 public Service()
 {
     ServInjector.Bind <T>(this);
 }