111
This commit is contained in:
34
Assets/ThirdParty/Tools/SetFrame/Runtime/KeyFrame.cs
vendored
Normal file
34
Assets/ThirdParty/Tools/SetFrame/Runtime/KeyFrame.cs
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class KeyFrame : MonoBehaviour
|
||||
{
|
||||
public int index;
|
||||
public Transform[] points;
|
||||
public Transform viewPoint;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
//clip.
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void OnDrawGizmos()
|
||||
{
|
||||
if(points.Length > 0)
|
||||
{
|
||||
for(int i = 0; i < points.Length - 1; ++i)
|
||||
{
|
||||
Gizmos.color = Color.red;
|
||||
Gizmos.DrawLine(points[i].position, points[i + 1].position);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user