예제 #1
0
    public void Activate()
    {
        var mousePosition = Camera.main.ScreenToWorldPoint(Input.mousePosition);

        mousePosition.z = 0;
        beam            = lineCreator.DrawLineTo(mousePosition - transform.position, BeamMaterial, BeamLength, BeamWidth);
        audioManager.PlayMagnet();
    }