blob: 7ee2299f1f374005a4b990cd879f991b6fb072cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#if UNITY_ANIMATION_GRAPH
using UnityEngine.Graphs.LogicGraph;
using UnityEngine;
namespace UnityEngine.Graphs
{
public class AnimationNodeLibrary
{
[AnimationLogic(typeof(Animation))]
public static void SetSpeed1 (Animation self, string animName, float speed)
{
// Sanity check
if (self)
self[animName].speed = speed;
else
Debug.LogWarning("SetSpeed self parameter is null");
}
}
}
#endif
|