using System.Collections; using System.Collections.Generic; using UnityEngine; using ZXKFramework; public class DrawLineTest : MonoBehaviour { DrawLine drawLine; private void Awake() { drawLine = GetComponent(); } public void Update() { if (Input.GetKeyDown(KeyCode.K)) { drawLine.CleanAll(); } if (Input.GetKeyDown(KeyCode.L)) { drawLine.CleanLast(); } } }