Last active
October 5, 2016 11:59
-
-
Save matt123miller/6b553385a76a9f68efd9d71817f85fc4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Logic created by @DanInFiction on Twitter, I stole it to make an extension method. | |
using UnityEngine; | |
using System.Collections; | |
public static class LookAt2D_Extension { | |
public static void LookAt2D(this Transform self, Transform target){ | |
self.right = target.position - self.position; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment