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.
47 lines
1.5 KiB
C#
47 lines
1.5 KiB
C#
2 months ago
|
// Animancer // Copyright 2020 Kybernetik //
|
||
|
|
||
|
#pragma warning disable CS0649 // Field is never assigned to, and will always have its default value.
|
||
|
|
||
|
using System;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace Animancer.Examples.StateMachines.Brains
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// The numerical details of a <see cref="Creature"/>.
|
||
|
/// </summary>
|
||
|
[Serializable]
|
||
|
public sealed class CreatureStats
|
||
|
{
|
||
|
/************************************************************************************************************************/
|
||
|
|
||
|
[SerializeField]
|
||
|
private float _WalkSpeed = 2;
|
||
|
public float WalkSpeed { get { return _WalkSpeed; } }
|
||
|
|
||
|
[SerializeField]
|
||
|
private float _RunSpeed = 4;
|
||
|
public float RunSpeed { get { return _RunSpeed; } }
|
||
|
|
||
|
public float GetMoveSpeed(bool isRunning)
|
||
|
{
|
||
|
return isRunning ? _RunSpeed : _WalkSpeed;
|
||
|
}
|
||
|
|
||
|
/************************************************************************************************************************/
|
||
|
|
||
|
[SerializeField]
|
||
|
private float _TurnSpeed = 360;
|
||
|
public float TurnSpeed { get { return _TurnSpeed; } }
|
||
|
|
||
|
/************************************************************************************************************************/
|
||
|
|
||
|
// Max health.
|
||
|
// Strength, dexterity, intelligence.
|
||
|
// Carrying capacity.
|
||
|
// Etc.
|
||
|
|
||
|
/************************************************************************************************************************/
|
||
|
}
|
||
|
}
|