public static void DefaultResponse(Collider other, WorldExitReset wer) { if (other.attachedRigidbody != null) { other.attachedRigidbody.velocity = Vector3.zero; other.attachedRigidbody.angularVelocity = Vector3.zero; other.attachedRigidbody.transform.position = wer.defaultResetPos.position; other.attachedRigidbody.MovePosition(wer.defaultResetPos.position); } }
public override void ResetNow(WorldExitReset resetBy) { Destroy(gameObject); }
abstract public void ResetNow(WorldExitReset resetBy);