Skip to main content

NPCStats.AddFocus

Declaration#

public virtual GDTKFocus AddFocus(string id, IUniquelyIdentifiable source)

Parameters#

NameDescription
idId of class to add
sourceSource associated with request

Description#

Adds a Focus to the object. If that Focus already exists its level is increased by 1.

Usage#

Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{    public void ExampleMethod(GlobalStats target, string focusId)    {        target.AddFocus(focusId);    }}