void Start() { if (SelectableMesh == null) { SelectableMesh = new Mesh(); } if (_SelectableMeshBorder == null) { _SelectableMeshBorder = new BorderPointSet[0]; } Border = GetComponent <BorderRenderer>(); Border.Points = SelectableMeshBorder; #if UNITY_EDITOR UnityEditor.SceneView.RepaintAll(); #endif }
void OnValidate() { Border = GetComponent <BorderRenderer>(); Border.Points = SelectableMeshBorder; }
void Start() { centerOfPlayArea = coreSettings.CurrentPlatform.GetPlayerTransform(); roomBorder = transform.Find("Navmesh").GetComponent <BorderRenderer>(); }