using UnityEngine;
using System.Collections;
var Spawn : Transform;
public class respawn : MonoBehaviour {
public GameObject Spawn;
void OnTriggerEnter(Collider other)
{
if (other.tag == "Player")
{
other.transform.position = Spawn.transform.position;
Debug.Log("moved");
}
}
}
Im currently using unity4, it suppose to spawn in front of tables after i hit em, but it nothing happen.