Skip to main content

PlayerCharacterStats.IsRace

Declaration#

public virtual bool IsRace(string id)

Parameters#

NameDescription
idId of the Race to check

Description#

Check if object is a specific Race

Usage#

Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(PlayerCharacterStats source)    {        string id = source.database.races[0].info.id;        if(source.IsRace(id))        {            Debug.Log("Race matches request");        }    }
}