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.
24 lines
469 B
24 lines
469 B
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(); |
|
} |
|
} |
|
}
|
|
|