PlayerCharacterStats.RemoveFocus
Declaration#
public virtual void RemoveFocus(GDTKFocus playerFocus, bool fullyRemove)Parameters#
| Name | Description |
|---|---|
| playerFocus | Id of Focus to Remove |
| fullyRemove | If false Focus' level will be reduce by 1 and only removed if the level reaches 0 |
Description#
Remove a Focus from object
Usage#
Example
using NullSave.GDTK.Stats;using UnityEngine;public class Example : MonoBehaviour{ public void ExampleMethod(PlayerCharacterStats target, string focusId) { target.RemoveFocus(target.GetFocus(focusId), true); }}