using UnityEngine;

using System.Collections;


public class Turret : MonoBehaviour {

public Transform target;

// Use this for initialization

void Start () {

}

// Update is called once per frame

void Update () {

transform.LookAt(target);

}

}


'Computer Language > 유니티' 카테고리의 다른 글

바둑 주석  (0) 2014.05.29
값과 주소.  (0) 2014.05.26
vector3 사용예제  (0) 2014.05.23
불 껏다 키기  (0) 2014.05.23
껏다 켯다 하기  (0) 2014.05.23

+ Recent posts