Skip to main content

PlayerCharacterStats.RemoveFocus

Declaration#

public virtual void RemoveFocus(GDTKFocus playerFocus, bool fullyRemove)

Parameters#

NameDescription
playerFocusId of Focus to Remove
fullyRemoveIf 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);    }}