Summary
Base class for the various states a
Platformer.Character
can be in and actions they can perform.
- Assembly
- PlatformerGameKit
.dll - Namespace
- PlatformerGameKit
.Characters .States - Interfaces
-
- IOwnedState
<CharacterState>
- IOwnedState
- Base Types
-
- StateBehaviour
- Derived Types
graph BT
Type-->Base0["StateBehaviour"]
Type-.->Interface0["IOwnedState<CharacterState>"]
Type["CharacterState"]
class Type type-node
Derived0["LandState"]-->Type
click Derived0 "/platformer/api/PlatformerGameKit.Characters.States/LandState"
Derived1["FlinchState"]-->Type
click Derived1 "/platformer/api/PlatformerGameKit.Characters.States/FlinchState"
Derived2["JumpState"]-->Type
click Derived2 "/platformer/api/PlatformerGameKit.Characters.States/JumpState"
Derived3["IdleState"]-->Type
click Derived3 "/platformer/api/PlatformerGameKit.Characters.States/IdleState"
Derived4["LocomotionState"]-->Type
click Derived4 "/platformer/api/PlatformerGameKit.Characters.States/LocomotionState"
Derived5["MultiState"]-->Type
click Derived5 "/platformer/api/PlatformerGameKit.Characters.States/MultiState"
Derived6["IntroductionState"]-->Type
click Derived6 "/platformer/api/PlatformerGameKit.Characters.States/IntroductionState"
Derived7["WallSlideState"]-->Type
click Derived7 "/platformer/api/PlatformerGameKit.Characters.States/WallSlideState"
Derived8["AttackState"]-->Type
click Derived8 "/platformer/api/PlatformerGameKit.Characters.States/AttackState"
Syntax
[PlatformerHelpUrl(typeof(CharacterState))]
public abstract class CharacterState : StateBehaviour, IOwnedState<CharacterState>
Remarks
Documentation:
States
Attributes
Type | Description |
---|---|
Platformer |
[Assert-Conditional]
A UnityEngine.HelpURLAttribute which points to Platformer Game Kit's documentation.
|
Fields
Name | Constant Value | Summary |
---|---|---|
MenuPrefix | Platformer Game Kit/Characters/States/ |
The menu prefix for
UnityEngine.AddComponentMenu .static
|
Properties
Name | Value | Summary |
---|---|---|
CanTurn | bool | |
Character | Character |
The
Samples.PlatformerCharacter that owns this state. |
Movement |
float | |
OwnerStateMachine | StateMachine |
Methods
Name | Value | Summary |
---|---|---|
OnValidate |
void |
[Editor-Only] Ensures that all fields have valid values and finds missing components nearby.
|
SetCharacter |
void |
Sets the
PlatformerGameKit.Characters.States.CharacterState.Character . |