Class HeroUtilities
Contains many utility functions related to the Hero (The player character)
Namespace: WeaverCore.Utilities
Assembly: WeaverCore.dll
Syntax
public static class HeroUtilities
Methods
| Edit this page View SourceBeginInGameCutscene(bool)
Begins an in-game cutscene that freezes the player
Declaration
public static void BeginInGameCutscene(bool playSound = true)
Parameters
Type | Name | Description |
---|---|---|
bool | playSound | If true, a cutscene sound effect is played |
EndInGameCutscene()
Ends an in-game cutscene and unfreezes the player
Declaration
public static void EndInGameCutscene()
PauseCurrentAnimation(bool)
Declaration
public static void PauseCurrentAnimation(bool pause)
Parameters
Type | Name | Description |
---|---|---|
bool | pause |
PlayPlayerClip(string)
Plays an animation clip on the player
Declaration
public static void PlayPlayerClip(string clip)
Parameters
Type | Name | Description |
---|---|---|
string | clip | The clip to play |
PlayPlayerClipTillDone(string)
Plays an animation clip on the player, and waits until the clip is done
Declaration
public static IEnumerator PlayPlayerClipTillDone(string clip)
Parameters
Type | Name | Description |
---|---|---|
string | clip | The clip to play |
Returns
Type | Description |
---|---|
IEnumerator |