Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 2
0
 private void ClearAll()
 {
     fullClearCounter = 0;
     if (GameObject.Find("Play").GetComponent <PlayButton>().IsPlaying == false)
     {
         transform.Find("Writer").GetComponent <Toggle>().isOn = true;
         GeneralLogic.ResetSimulationEvent();
     }
 }