NPCStats.AddFocus
Declaration#
public virtual GDTKFocus AddFocus(string id, IUniquelyIdentifiable source)Parameters#
| Name | Description |
|---|---|
| id | Id of class to add |
| source | Source 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); }}