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