using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Move : MonoBehaviour {

    PointOfEffectController controller;

    private void Start()
    {
        controller = GetComponent<PointOfEffectController>();
    }

    // Update is called once per frame
    public void MovePlayer (float x, float y)
    {
        // x *= speedX;
        //  y *= speedY
    
        float pixelX = (Screen.width * (x));
        float pixelY = (Screen.height * (y)); ;
        
        controller.SetPosition(Camera.main.ScreenToWorldPoint(new Vector2(pixelX, pixelY)));


    }
}
