Last updated 4 years ago
GET GetState(bool isWeapon)
GET
GetState(bool isWeapon)
Invoking this function will return the StateData for the camera or the guns, depending on the isWeapon boolean.
Field
Description
unarmedCameraStates
Sets the state data for when the player is unarmed.
IsWeapon
boolean
Determines whether you need the camera or the gun's data.
//Get the camera's data. StateData cameraData = PlayerStateHandler.Instance.GetState(false);