Created
September 23, 2021 01:18
-
-
Save curious-username/665a4d0c8b968bdef4ab392d9df001e1 to your computer and use it in GitHub Desktop.
logic for handling shield in damage method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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