Skip to content

Instantly share code, notes, and snippets.

@curious-username
Created September 23, 2021 01:29
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/1b460014154c4a25e34b2f6486136e70 to your computer and use it in GitHub Desktop.
Save curious-username/1b460014154c4a25e34b2f6486136e70 to your computer and use it in GitHub Desktop.
method to activate the shield on the player
public void ShieldsActive()
{
if(_shield != null) {
_isShieldActive = true;
//enable shield visualize
_shield.SetActive(true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment