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.
59 lines
806 B
59 lines
806 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using IndieMarc.CurvedLine;
|
|
using QFX.MFX;
|
|
using System;
|
|
|
|
public class Draw3DLiner : MonoBehaviour
|
|
{
|
|
|
|
public MapUnit.LoopClip loopClip;
|
|
|
|
public List<GameObject> arrows;
|
|
|
|
private void Awake()
|
|
{
|
|
|
|
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.S))
|
|
{
|
|
Debug.LogFormat("ppppppppppppppp");
|
|
OnShowLiner();
|
|
}
|
|
if (Input.GetKeyDown(KeyCode.H))
|
|
{
|
|
OnHideLiner();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void OnShowLiner(Action finish = null)
|
|
{
|
|
StartCoroutine(loopClip.OnShow(finish));
|
|
}
|
|
|
|
|
|
|
|
public void OnHideLiner(Action finish = null)
|
|
{
|
|
StartCoroutine(loopClip.OnHide(finish));
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|