Table of Contents

Class PTarget

Namespace
Global
Assembly
Assembly-CSharp.dll
public class PTarget : MonoBehaviour, IPTargetUnsafeFunctions
Inheritance
PTarget
Implements

Constructors

PTarget()

public PTarget()

Fields

decalsOnly

public bool decalsOnly

Field Value

bool

multithreaded

public bool multithreaded

Field Value

bool

onTargetChange

public List<IOnPTargetChangeUnsafe> onTargetChange

Field Value

List<IOnPTargetChangeUnsafe>

targetMaterial

public Material targetMaterial

Field Value

Material

targetPieceAngularDrag

public float targetPieceAngularDrag

Field Value

float

targetPieceColliderThickness

public float targetPieceColliderThickness

Field Value

float

targetPieceDrag

public float targetPieceDrag

Field Value

float

targetPieceMass

public float targetPieceMass

Field Value

float

targetPieceMaxAngularVelocity

public float targetPieceMaxAngularVelocity

Field Value

float

targetPiecePrefab

public GameObject targetPiecePrefab

Field Value

GameObject

targetPieceRandomAngularVelocityScale

public float targetPieceRandomAngularVelocityScale

Field Value

float

targetProfile

public PTargetProfile targetProfile

Field Value

PTargetProfile

Methods

AddBullet(int, int, Vector2, float, float)

public void AddBullet(int sourceLabel, int decalIndex, Vector2 uvPosition, float rotation, float damageSize)

Parameters

sourceLabel int
decalIndex int
uvPosition Vector2
rotation float
damageSize float

AddBullet(int, int, Vector2, float, Vector2, float)

public void AddBullet(int sourceLabel, int decalIndex, Vector2 uvPosition, float rotation, Vector2 scale, float damageSize)

Parameters

sourceLabel int
decalIndex int
uvPosition Vector2
rotation float
scale Vector2
damageSize float

AddBullet(int, Vector2, float, Vector2, float)

public void AddBullet(int decalIndex, Vector2 uvPosition, float rotation, Vector2 scale, float damageSize)

Parameters

decalIndex int
uvPosition Vector2
rotation float
scale Vector2
damageSize float

AddBulletDecal(int, int, Vector2, float, Vector2)

public void AddBulletDecal(int sourceLabel, int decalIndex, Vector2 uvPosition, float rotation, Vector2 scale)

Parameters

sourceLabel int
decalIndex int
uvPosition Vector2
rotation float
scale Vector2

AddBulletDecal(int, Vector2, float, Vector2)

public void AddBulletDecal(int decalIndex, Vector2 uvPosition, float rotation, Vector2 scale)

Parameters

decalIndex int
uvPosition Vector2
rotation float
scale Vector2

DestroyCell(Vector2)

public void DestroyCell(Vector2 uvPosition)

Parameters

uvPosition Vector2

GetUV(Vector3)

public Vector2 GetUV(Vector3 localPosition)

Parameters

localPosition Vector3

Returns

Vector2

ResetTarget()

public void ResetTarget()

ResetTarget(PTargetProfile, float, bool)

public void ResetTarget(PTargetProfile targetProfile, float healthMultiplier = 1, bool decalsOnly = false)

Parameters

targetProfile PTargetProfile
healthMultiplier float
decalsOnly bool