Added Anne-Lise Hiding Spot plus Kids Hidding spots
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 116af68fa272dc64ba6e58bd5e277631
|
||||
Reference in New Issue
Block a user