Skip to content

Instantly share code, notes, and snippets.

@saitocastel1900
Last active 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/97867156eed274e682422ef51e7c1da5 to your computer and use it in GitHub Desktop.
Save saitocastel1900/97867156eed274e682422ef51e7c1da5 to your computer and use it in GitHub Desktop.
private void OnTriggerEnter(Collider other)
{
//それぞれのヒット処理を呼び出す
var hit = 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