ArrowLook.cs 344 B

123456789101112131415161718192021
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class ArrowLook : MonoBehaviour {
  5. // Use this for initialization
  6. void Start () {
  7. }
  8. // Update is called once per frame
  9. void Update () {
  10. }
  11. public void Look(GameObject cube)
  12. {
  13. transform.LookAt(cube.transform);
  14. }
  15. }