sudo apt-get install python3-pip
sudo pip3 install virtualenv
// Rotate sprite/object towards mouse | |
// Reference: http://johnstejskal.com/wp/rotating-objects-and-sprites-in-unity3d-using-cs-c/ | |
// https://forum.unity3d.com/threads/how-to-detect-angle-from-one-object-to-another-in-2d.477510/ | |
// Usage: Attach this script to sprite, use Orthographic camera! | |
using UnityEngine; | |
using System.Collections; | |
public class RotateSpriteTowardsMouse : MonoBehaviour | |
{ |