コード例 #1
0
 void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
     }
 }
コード例 #2
0
 void Start()
 {
     angerCount    = 1;
     indexPosition = 1;
     if (_instance == null || (_instance != null && _instance.gameObject.activeSelf))
     {
         _instance = this;
     }
     gameObject.SetActive(false);
 }