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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/ThirdParty/Tools/SetFrame/Runtime/KeyFrame.cs.meta
vendored
Normal file
11
Assets/ThirdParty/Tools/SetFrame/Runtime/KeyFrame.cs.meta
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d507793a016efd24aa0281024bcc41c7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user