trouble-in-terror-town/Assets/Scripts/Player/Character/Controller/CharacterStateMachine.cs
Mikolaj f9dca9cddb update engine version and fixed AddForce movement
I updated engine to 2021.3.1f1 LTS and got AddForce movement properly (I like it), next up is springing, crouching, jumping and .... ladders
2022-04-24 23:09:06 +02:00

45 lines
1 KiB
C#

using UnityEngine;
namespace TTTSC.Player.Character.Controller
{
public class CharacterStateMachine : MonoBehaviour
{
public CharacterStates characterState;
public MovementModes movementType;
public bool ceilingDetected;
public bool eligibleForStep;
[Header("Ladder bools")]
public bool onLadder;
public bool topOnLadder;
public bool bottomOnLadder;
public bool enteredLadderFromBottom;
public bool enteredLadderFromTop;
[HideInInspector]
public Transform topLadder;
[HideInInspector]
public Transform bottomLadder;
//Grounded and InAir is currently set by CharacterHover script
public enum CharacterStates
{
Grounded,
InAir,
InWater
}
public enum MovementModes
{
Walk,
Run,
Crouch
}
public enum ActionState
{
InCar,
InBoat,
InProp
}
}
}