You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/Plugins/Animancer/Examples/02 Fine Control/01 Spider Bot/SpiderBotSimple.cs

35 lines
1.2 KiB
C#

3 months ago
// Animancer // Copyright 2020 Kybernetik //
#pragma warning disable CS0649 // Field is never assigned to, and will always have its default value.
using UnityEngine;
namespace Animancer.Examples.FineControl
{
/// <summary>
/// A <see cref="SpiderBot"/> with a single movement animation for demonstration purposes.
/// </summary>
[AddComponentMenu(Strings.MenuPrefix + "Examples/Fine Control - Spider Bot Simple")]
[HelpURL(Strings.APIDocumentationURL + ".Examples.FineControl/SpiderBotSimple")]
public sealed class SpiderBotSimple : SpiderBot
{
/************************************************************************************************************************/
protected override bool IsMoving
{
get { return Input.GetKey(KeyCode.Space); }
}
/************************************************************************************************************************/
[SerializeField] private ClipState.Transition _Move;
protected override ITransition MovementAnimation
{
get { return _Move; }
}
/************************************************************************************************************************/
}
}