void OnDisable() { if (id != -1) { Ruratae.DestroySpring(this); id = -1; } }
public void Shutdown() { if (id != -1) { GetComponent <CapsuleCollider>().enabled = true; Ruratae.DestroySpring(this); id = -1; } }