private void Update() { rb.velocity = Vector2.ClampMagnitude(rb.velocity, maxVelocity); if (Mathf.Abs(transform.position.x) > 150 || Mathf.Abs(transform.position.x) > 150) { GeneralLogic.ResetSimulationEvent(); } }
private void ClearAll() { fullClearCounter = 0; if (GameObject.Find("Play").GetComponent <PlayButton>().IsPlaying == false) { transform.Find("Writer").GetComponent <Toggle>().isOn = true; GeneralLogic.ResetSimulationEvent(); } }