Complete Upgrade

This commit is contained in:
ApfelTeeSaft
2026-05-23 14:12:25 +02:00
parent 426a40e01d
commit 82fd6c1923
765 changed files with 106326 additions and 0 deletions
@@ -0,0 +1,40 @@
using System;
using UnityEngine;
[Serializable]
public class SmoothFollow2D : MonoBehaviour
{
public Transform target;
public float smoothTime;
private Transform thisTransform;
private Vector2 velocity;
public SmoothFollow2D()
{
smoothTime = 0.3f;
}
public virtual void Start()
{
thisTransform = transform;
}
public virtual void Update()
{
float x = Mathf.SmoothDamp(thisTransform.position.x, target.position.x, ref velocity.x, smoothTime);
Vector3 position = thisTransform.position;
float num = (position.x = x);
Vector3 vector = (thisTransform.position = position);
float y = Mathf.SmoothDamp(thisTransform.position.y, target.position.y, ref velocity.y, smoothTime);
Vector3 position2 = thisTransform.position;
float num2 = (position2.y = y);
Vector3 vector3 = (thisTransform.position = position2);
}
public virtual void Main()
{
}
}