Animations for Wolter

This commit is contained in:
2025-09-29 14:10:14 +02:00
parent b188f7adb3
commit f78c031cd3
13 changed files with 1374 additions and 45 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1cf1604900ae8224da647627ed56fa65
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,48 @@
using System;
using System.Diagnostics;
using Pixelplacement;
using Pixelplacement.TweenSystem;
using UnityEngine;
public class WolterStateMachine : MonoBehaviour
{
public Spline jumpSpline;
public Transform wolterGameObject;
public float jumpDuration;
public float jumpDelay;
private Animator animator;
private TweenBase jumpTween;
private void Awake()
{
animator = GetComponentInChildren<Animator>();
}
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
jumpTween = Tween.Spline(jumpSpline, wolterGameObject, 1, 0, false, jumpDuration, jumpDelay, Tween.EaseInOut, Tween.LoopType.None, HandleJumpStarted, HandleJumpFinished);
}
void HandleJumpStarted()
{
}
void HandleJumpFinished()
{
if (animator != null)
{
animator.SetBool("Landed", true);
}
}
// Update is called once per frame
void Update()
{
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 47b7b0e9f0b06ad45b7e92c25226d21e