示例#1
0
        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
        }
示例#2
0
 void OnValidate()
 {
     Border        = GetComponent <BorderRenderer>();
     Border.Points = SelectableMeshBorder;
 }
示例#3
0
 void Start()
 {
     centerOfPlayArea = coreSettings.CurrentPlatform.GetPlayerTransform();
     roomBorder       = transform.Find("Navmesh").GetComponent <BorderRenderer>();
 }