21 lines
997 B
C#
21 lines
997 B
C#
|
using System;
|
||
|
using System.Collections;
|
||
|
|
||
|
// ReSharper disable once CheckNamespace
|
||
|
namespace BlueWaterProject
|
||
|
{
|
||
|
public interface IAnimationStateController
|
||
|
{
|
||
|
void SetAnimationParameter<T>(T parameter, bool value);
|
||
|
void SetAnimationParameter<T>(T parameter, int value);
|
||
|
void SetAnimationParameter<T>(T parameter, float value);
|
||
|
void SetAnimationTrigger<T>(T parameter);
|
||
|
bool IsComparingCurrentAnimation(string animationName, int animatorLayer = 0);
|
||
|
bool IsComparingCurrentAnimation<T>(T animationName, int animatorLayer = 0);
|
||
|
IEnumerator WaitForAnimationToRun(string animationName, Action<bool> onSuccess, float timeout = 0.2f);
|
||
|
IEnumerator WaitForAnimationToRun<T>(T animationName, Action<bool> onSuccess, float timeout = 0.2f);
|
||
|
void SetCurrentAnimationSpeed(float targetDuration, int animatorLayer = 0);
|
||
|
float GetCurrentAnimationNormalizedTime(int animatorLayer = 0);
|
||
|
void ResetAnimationSpeed();
|
||
|
}
|
||
|
}
|