C# Класс LaserBeamCylinder, gmap377_leathGloves_inc

Used to scale the cylinder and offset the texture on the mesh for an extra effect
Наследование: MonoBehaviour
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
CantPassThrough LayerMask
CollisionParticle GameObject
GrowRate float
Target string

Открытые методы

Метод Описание
OnDestroy ( ) : void

Called when the laser is destroyed to decrease the laser count by 1

OnTriggerEnter ( Collider col ) : void

Used to handle collisions. Will do damage when the cylinder collider collides with an object matching the Target tag

Start ( ) : void

Used to initialize the Mesh variable

Update ( ) : void

Called once per frame. Used to scale and move the texture on the mesh/

Описание методов

OnDestroy() публичный Метод

Called when the laser is destroyed to decrease the laser count by 1
public OnDestroy ( ) : void
Результат void

OnTriggerEnter() публичный Метод

Used to handle collisions. Will do damage when the cylinder collider collides with an object matching the Target tag
public OnTriggerEnter ( Collider col ) : void
col Collider The collider the cylinder interacted with
Результат void

Start() публичный Метод

Used to initialize the Mesh variable
public Start ( ) : void
Результат void

Update() публичный Метод

Called once per frame. Used to scale and move the texture on the mesh/
public Update ( ) : void
Результат void

Описание свойств

CantPassThrough публичное свойство

public LayerMask CantPassThrough
Результат LayerMask

CollisionParticle публичное свойство

public GameObject CollisionParticle
Результат GameObject

GrowRate публичное свойство

public float GrowRate
Результат float

Target публичное свойство

public string Target
Результат string