화면 밖으로 나가면 gameObject 제거하기

void OnBecameInvisible()
{
  Destroy(gameObject);
}

+ Recent posts