Skip to content

Instantly share code, notes, and snippets.

@curious-username
Created September 23, 2021 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save curious-username/665a4d0c8b968bdef4ab392d9df001e1 to your computer and use it in GitHub Desktop.
Save curious-username/665a4d0c8b968bdef4ab392d9df001e1 to your computer and use it in GitHub Desktop.
logic for handling shield in damage method
if(_isShieldActive == true)
{
if (_shield != null) {
_isShieldActive = false;
_shield.SetActive(false);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment