public void DeactivateMovement() { if (GameManagerScript.Manager.state == GameState.Paused && shooted) { pausedShooted = true; } mf.SetMFStatus(false); SetWallsStatus(true); }
/// <summary> /// Activa el dragging del atomo, desactivando su simulacion de rb2d, /// movimiento y activa el seguimiento del mouse. /// </summary> public void StartDragging() { speedPreDrag = speed; velocityPreDrag = rb2d.velocity; speed = 0; rb2d.velocity = Vector2.zero; // Desctivamos la simulacion fisica del atomo coll2d.enabled = false; rb2d.simulated = false; amf.SetMFStatus(true); }