public void Activate() { var mousePosition = Camera.main.ScreenToWorldPoint(Input.mousePosition); mousePosition.z = 0; beam = lineCreator.DrawLineTo(mousePosition - transform.position, BeamMaterial, BeamLength, BeamWidth); audioManager.PlayMagnet(); }