using UnityEngine; using System.Collections; // uses raycast to find ground below this gameobject // Note: if this gameobject is in the samelayer as GroundLayer, raycast might hit this gameobject and not ground namespace TTT { public class PlaceOnSurfaceAtStart : MonoBehaviour { public float PivotOffset = 0f; public float RayOffset = 100; // how high above we shoot ray down public LayerMask GroundLayer; void Start () { if(((1<