public OnChangeHP_Arg(ObserverCollection_Example_UseObserverPattern pMessenger, bool bIsDamaged, float fCurrentHP_0_1)
 {
     this.pMessenger     = pMessenger;
     this.fCurrentHP_0_1 = fCurrentHP_0_1;
     this.bIsDamaged     = bIsDamaged;
     this.bIsDead        = fCurrentHP_0_1 == 0f;
 }
Esempio n. 2
0
 private void Awake()
 {
     p_Monster_A = GetComponentInChildren <ObserverCollection_Example_Legacy>();
     p_Monster_B = GetComponentInChildren <ObserverCollection_Example_UseObserverPattern>();
 }