예제 #1
0
        // \IPlayerCharacter

        // IDisposable
        void IDisposable.Dispose()
        {
            NumLives.Dispose();
            Health.Dispose();
            Position.Dispose();
            IsActive.Dispose();
        }
예제 #2
0
 public void TakeDamage(int damage)
 {
     _hp.Value -= damage;
     if (_hp.Value <= 0)
     {
         _hp.Dispose();
         Destroy(gameObject);
     }
 }
예제 #3
0
 public void Dispose()
 {
     TimeReactiveProperty?.Dispose();
     TimerDisposable?.Dispose();
 }