public void Update() { //Bending bool isBending = create.isCreating || manipulate.isManipulating; //Input mov = controls.Player.Movement.ReadValue <Vector2>(); aim = controls.Player.Aim.ReadValue <Vector2>(); if (aim.magnitude > deadZone) { lastPotentAim = aim; } //Don't move once bending //Vector2 movInput = isBending ? Vector2.zero : mov; Move(mov); //Test DebugExtension.DrawShape(ShapeExtension.CreateCirclePoints(transform.position, 2.5f, 20)); }
public static void DrawCircle(Vector2 position, float radius) { DrawShape(ShapeExtension.CreateCirclePoints(position, radius)); }