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
UseSkill(Skill, GameObject, Vector3, bool)
public Skill UseSkill(Skill skill, GameObject target, Vector3 targetPosition, bool sayCommand = false)
Parameters
skillSkilltargetGameObjecttargetPositionVector3sayCommandbool
Returns
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
skillTypeTypetargetGameObjecttargetPositionVector3sayCommandbool