C# 클래스 UnityContrib.UnityEngine.RuntimeTreeColliders

상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: UnityContrib/framework

공개 메소드들

메소드 설명
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