void LookAtMouse() { Vector2 mouseScreen = Input.mousePosition; Vector2 mouse = Camera.main.ScreenToWorldPoint(mouseScreen); CustomFunctions.LookAt2D(transform, transform.position, mouse); }
void LookAtMouse() { Vector2 mouseScreen = Input.mousePosition; Vector2 mouse = Camera.main.ScreenToWorldPoint(mouseScreen); CustomFunctions.LookAt2D(transform, transform.position, mouse); }