Advertisement
VodVas

CleanCode_ExampleTask30.cs

Dec 18th, 2024
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | Cryptocurrency | 0 0
  1. public void Enable()
  2. {
  3.     if (_enable == false)
  4.     {
  5.         _enable = true;
  6.  
  7.         _effects.StartEnableAnimation();
  8.     }
  9. }
  10.  
  11. public void Disable()
  12. {
  13.     if (_enable)
  14.     {
  15.         _enable = false;
  16.  
  17.         _pool.Free(this);
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement