浏览代码

Follow Path Rig

/main
Thomas ICHÉ 5 年前
当前提交
a28e10ef
共有 2 个文件被更改,包括 142 次插入0 次删除
  1. 131
      Runtime/Rigs/FollowPathRig.cs
  2. 11
      Runtime/Rigs/FollowPathRig.cs.meta

131
Runtime/Rigs/FollowPathRig.cs


using NaughtyAttributes;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace GameplayIngredients.Rigs
{
public class FollowPathRig : MonoBehaviour
{
public enum PlayMode
{
Playing,
Stopped,
Reverse
}
public enum LoopMode
{
Hold,
Loop,
PingPong
}
public LoopMode loopMode = LoopMode.PingPong;
public bool StopOnSteps = false;
public float Speed = 2.0f;
[ReorderableList, SerializeField]
protected GameObject[] Path;
</