วันพุธที่ 23 พฤศจิกายน พ.ศ. 2559

Unity 3D : rotation same as another


 rotation same as another


using UnityEngine;
using System.Collections;

public class SameRotation : MonoBehaviour {

public Camera camera;

void Start () {
}


void Update () {
transform.localRotation = camera.transform.localRotation;
}
}

ไม่มีความคิดเห็น:

แสดงความคิดเห็น