You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
469 B
25 lines
469 B
1 year ago
|
using UnityEngine;
|
||
|
public class AreaController : MonoBehaviour
|
||
|
{
|
||
|
private ModelMeshEditor editor;
|
||
|
private bool isEdit;
|
||
|
|
||
|
private void Start()
|
||
|
{
|
||
|
editor=GetComponent<ModelMeshEditor>();
|
||
|
}
|
||
|
private void OnMouseDown()
|
||
|
{
|
||
|
if (!isEdit)
|
||
|
{
|
||
|
isEdit = true;
|
||
|
editor.CreateEditorPoint();
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
isEdit = false;
|
||
|
editor.DeleteEditorPoint();
|
||
|
}
|
||
|
}
|
||
|
}
|