Behavior_AvatarStun¶
This Behavior_AvatarStun component provides a stunned state in which players are unable to move and attack. You can choose a visual effect for a stunned player.
Field | Description |
---|---|
Stun VFX | Specifies the visual effect to show when the player is in the stunned state. |
Duration | Determines how long it lasts for the visual effect. |
Note: As this is a global component, you can attach this component to any object in the scene. However, it's a best practice to create an empty object named "GameManager" and attach this component to it.
Related components¶
This component is suggested to be used with:
- Behavior_SpawnableObjectMaker, which marks the position where the visual effect is displayed.
- Level_GameState, which manages basic states for a game.