Пример #1
0
 public void removeDieCallback(lifeCallFunc call)
 {
     dieCallbackList-=call;
 }
Пример #2
0
 //在死亡或者去血的回调中,读取
 //protected Hashtable injureInfo;
 //搜索有无bloodBar 以便显示血量
 //void Start()
 //{
 //}
 /*
 void  setDieCallback ( call ){
     dieCallback=call;
 }*/
 public void addDieCallback(lifeCallFunc call)
 {
     dieCallbackList+=call;
 }
Пример #3
0
 public void addInjuredEventReceiver(lifeCallFunc pReceiver)
 {
     injuredEvent -= nullLifeCallFunc;
     injuredEvent += pReceiver;
 }
Пример #4
0
 public void addBloodValueChangeCallback(lifeCallFunc call)
 {
     bloodValueChangeCallback -= nullLifeCallFunc;
     bloodValueChangeCallback += call;
 }