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.
30 lines
1.2 KiB
C#
30 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.StateMachines.Platformer
|
|
{
|
|
/// <summary>
|
|
/// Base class for any kind of <see cref="Platformer.Creature"/> controller - local, network, AI, replay, etc.
|
|
/// </summary>
|
|
[HelpURL(Strings.APIDocumentationURL + ".Examples.StateMachines.Platformer/CreatureBrain")]
|
|
public abstract class CreatureBrain : MonoBehaviour
|
|
{
|
|
/************************************************************************************************************************/
|
|
|
|
[SerializeField]
|
|
private Creature _Creature;
|
|
public Creature Creature { get { return _Creature; } }
|
|
|
|
/************************************************************************************************************************/
|
|
|
|
public float MovementDirection { get; protected set; }
|
|
|
|
public bool IsRunning { get; protected set; }
|
|
|
|
/************************************************************************************************************************/
|
|
}
|
|
}
|