示例#1
0
 public void SetStartPlaced()
 {
     if (startPlaced != null)
     {
         startPlaced.SetPlacePoint(this);
         Place(startPlaced);
     }
 }
示例#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);
            }
        }