Last active
August 3, 2016 15:07
-
-
Save tsubaki/bb39f9ca49b79541518b6f1cd8df8240 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
using UnityEngine; | |
using System.Collections; | |
public class SimpleLookat : MonoBehaviour { | |
// ゴール | |
[SerializeField] Transform target; | |
// カーソル | |
[SerializeField] Transform cursor; | |
// Update is called once per frame | |
void Update () | |
{ | |
cursor.LookAt (target); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment