Upload from upload_mods.ps1
This commit is contained in:
31
KFAttached/Misc/ItemAnimatorUpdate.cs
Normal file
31
KFAttached/Misc/ItemAnimatorUpdate.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Animations.Rigging;
|
||||
using UnityEngine.Playables;
|
||||
|
||||
[AddComponentMenu("")]
|
||||
[DisallowMultipleComponent]
|
||||
internal class ItemAnimatorUpdate : MonoBehaviour
|
||||
{
|
||||
private Animator animator;
|
||||
private RigBuilder weaponRB;
|
||||
internal PlayableGraph graph;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
animator = GetComponent<Animator>();
|
||||
TryGetComponent<RigBuilder>(out weaponRB);
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
//animator.playableGraph.Evaluate(Time.deltaTime);
|
||||
animator.Update(Time.deltaTime);
|
||||
//graph.Evaluate(Time.deltaTime);
|
||||
//weaponRB?.Evaluate(Time.deltaTime);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user