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
/* | |
* Simple Twitch IMPLICIT OAuth flow example | |
* by HELLCAT & MeepsKitten | |
* | |
* At first glance, this looks like more than it actually is. | |
* It's really no rocket science, promised! ;-) | |
* And for any further questions contact me directly or on the Twitch-Developers discord. | |
* | |
* 🐦 https://twitter.com/therealhellcat & https://twitter.com/MeepsKitten | |
* 📺 https://www.twitch.tv/therealhellcat & https://twitch.tv/MeepsKitten |
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
public static class Utility | |
{ | |
public static float CalculateAngle(Vector3 from, Vector3 to) | |
{ | |
return Quaternion.FromToRotation(Vector3.up, to - from).eulerAngles.z; | |
} | |
} |