25 lines
480 B
C#
25 lines
480 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using ZXKFramework;
|
|
public class DrawLineTest : MonoBehaviour
|
|
{
|
|
DrawLine drawLine;
|
|
private void Awake()
|
|
{
|
|
drawLine = GetComponent<DrawLine>();
|
|
}
|
|
|
|
public void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.K))
|
|
{
|
|
drawLine.CleanAll();
|
|
}
|
|
if (Input.GetKeyDown(KeyCode.L))
|
|
{
|
|
drawLine.CleanLast();
|
|
}
|
|
}
|
|
}
|