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.
35 lines
1.2 KiB
C#
35 lines
1.2 KiB
C#
// 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; }
|
|
}
|
|
|
|
/************************************************************************************************************************/
|
|
}
|
|
}
|