KomastarDev

Untitled

May 29th, 2020
708
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  1. public bool IsAlive { get => gameObject.activeSelf && Hp > 0; }
  2. public bool IsAlive
  3. {
  4.     get
  5.     {
  6.         return gameObject.activeSelf && Hp > 0;
  7.     }
  8. }
  9. public bool IsAlive
  10. {
  11.     get
  12.     {
  13.         if (gameObject.activeSelf)
  14.             if (Hp > 0)
  15.                 return true;
  16.         return false;
  17.     }
  18. }
Add Comment
Please, Sign In to add comment