コード例 #1
0
 // When the object is disabled, remove this from the channel to avoid unnecessary event raising
 private void OnDisable()
 {
     _event.UnregisterListener(this);
 }
コード例 #2
0
ファイル: HealthBar.cs プロジェクト: OrangeWallDevs/heroes-of
 private void OnDestroy()
 {
     healthChangedEvent.UnregisterListener(UpdateHealthBar);
 }