Any ideas how to script a command to return a moved object back to its original position?
Thanks,
Greg
Any ideas how to script a command to return a moved object back to its original position?
Thanks,
Greg
vector3 originalPosition;
function Awake()
{
originalPosition = transform.position;
}
function GoBackToOriginalPosition()
{
transform.position = originalPosition;
}
Thanks, Charles!