Table of Contents

Method UseSkill

Namespace
GrindFest
Assembly
GrindFest.dll

UseSkill(Skill, bool)

Converted (plain C#) skill entry point — same shape as the MonoBehaviour ones below, minus the prefab instance: the skill object is added to the SkillUser and its coroutine is hosted there.

public void UseSkill(Skill skill, bool sayCommand = false)

Parameters

skill Skill
sayCommand bool

UseSkill(Skill, GameObject, Vector3, bool)

public Skill UseSkill(Skill skill, GameObject target, Vector3 targetPosition, bool sayCommand = false)

Parameters

skill Skill
target GameObject
targetPosition Vector3
sayCommand bool

Returns

Skill

UseSkill(Type, GameObject, Vector3, bool)

Uses a skill named by type, creating the character's own instance first when it does not have it yet. This is the prefab-free replacement for passing a skill component around.

public Skill UseSkill(Type skillType, GameObject target, Vector3 targetPosition, bool sayCommand = false)

Parameters

skillType Type
target GameObject
targetPosition Vector3
sayCommand bool

Returns

Skill