コード例 #1
0
 private void OnDestroy()
 {
     if (current == this)
     {
         current = null;
     }
 }
コード例 #2
0
 private void Awake()
 {
     current         = this;
     colliderTrigger = GetComponent <Collider2D>();
 }