Show / Hide Table of Contents

Class HeroUtilities

Contains many utility functions related to the Hero (The player character)

Inheritance
object
HeroUtilities
Namespace: WeaverCore.Utilities
Assembly: WeaverCore.dll
Syntax
public static class HeroUtilities

Methods

| Edit this page View Source

BeginInGameCutscene(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

| Edit this page View Source

EndInGameCutscene()

Ends an in-game cutscene and unfreezes the player

Declaration
public static void EndInGameCutscene()
| Edit this page View Source

PauseCurrentAnimation(bool)

Declaration
public static void PauseCurrentAnimation(bool pause)
Parameters
Type Name Description
bool pause
| Edit this page View Source

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

| Edit this page View Source

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
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾