Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created January 22, 2026 03:16
Show Gist options
  • Select an option

  • Save todorok1/2b21c90249433c941cc3a2380be12e0e to your computer and use it in GitHub Desktop.

Select an option

Save todorok1/2b21c90249433c941cc3a2380be12e0e to your computer and use it in GitHub Desktop.
FindAnyObjectByTypeの確認で使用する継承元のクラス
using UnityEngine;
public class BasePikachu : MonoBehaviour
{
public virtual void ShowMessage()
{
Debug.Log("ピカチュウ!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment