C# Класс UnityContrib.UnityEngine.RuntimeTreeColliders

Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект

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

Метод Описание
AddTree ( TreeInstance treeInstance ) : bool

Adds the specified treeInstance to the collection of trees who's collider to manage.

RemoveTree ( TreeInstance treeInstance ) : bool

Removes the specified treeInstance from the collection of trees who's collider to manage.

Приватные методы

Метод Описание
CopyCapsuleColliderProperties ( CapsuleCollider from, CapsuleCollider to ) : void

Copies the capsule collider specific properties from one T:UnityEngine.CapsuleCollider to another.

FixedUpdate ( ) : void

Changes the colliders based on which trees the player is near.

This method is invoked by Unity.

SetupChildColliders ( CapsuleCollider currentCollider, CapsuleCollider prototypeCollider ) : void

Creates, updates, enables and disables child colliders.

Start ( ) : void

Caches quick references and initializes the quadtree.

This method is invoked by Unity.

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

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

Adds the specified treeInstance to the collection of trees who's collider to manage.
public AddTree ( TreeInstance treeInstance ) : bool
treeInstance UnityEngine.TreeInstance /// The to add. ///
Результат bool

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

Removes the specified treeInstance from the collection of trees who's collider to manage.
public RemoveTree ( TreeInstance treeInstance ) : bool
treeInstance UnityEngine.TreeInstance /// The to remove. ///
Результат bool