Files
AppleHillsProduction/Assets/Scripts/DamianExperiments/AnnaLiseAnd Lurespots/AnneLiseBushPopBehaviour.cs

27 lines
606 B
C#
Raw Normal View History

using UnityEngine;
using Pixelplacement;
public class AnneLiseBushPopBehaviour : MonoBehaviour
{
public Spline popSpline;
public Transform bushObject;
public float popDuration = 1f;
public float popDelay = 0f;
void Start()
{
// Example: Move bushObject along the spline from start (0) to end (1)
Tween.Spline(
popSpline,
bushObject,
1f,
0f,
false, // Do not orient to path
popDuration,
popDelay,
Tween.EaseInOut,
Tween.LoopType.PingPong
);
}
}