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