Skip to content

Instantly share code, notes, and snippets.

@saitocastel1900
Created November 7, 2022 12:58
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 saitocastel1900/74e2a7d2a1488768185f42e1d0561241 to your computer and use it in GitHub Desktop.
Save saitocastel1900/74e2a7d2a1488768185f42e1d0561241 to your computer and use it in GitHub Desktop.
if (other.gameObject.tag == "爆弾")
{
other.GetComponent<IIgnited>();
hit?.Ignited(damege, this.gameObject);
}
if (other.gameObject.name=="爆弾")
{
other.GetComponent<IIgnited>();
hit?.Ignited(damege, this.gameObject);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment