Example #1
0
 public void SetStartPlaced()
 {
     if (startPlaced != null)
     {
         startPlaced.SetPlacePoint(this);
         Place(startPlaced);
     }
 }
Example #2
0
        void Start()
        {
#if UNITY_EDITOR
            lastEditorGrabbable = null;
            if (!EditorApplication.isPlaying)
            {
                return;
            }
#endif

            col                  = gameObject.GetComponent <SphereCollider>();
            col.radius           = placeRadius;
            col.isTrigger        = true;
            col.gameObject.layer = LayerMask.NameToLayer("PlacePoint");
            if (startPlaced != null)
            {
                startPlaced.SetPlacePoint(this);
                Place(startPlaced);
            }
        }