Property | Type | Description | |
---|---|---|---|
cbFunction | RayCastCallback |
Method | Description | |
---|---|---|
OnRayCast ( Vector3 hitPozs, Camera cam, float dis = 1000f ) : void |
RayCast interface
|
|
Register ( string layers, RayCastCallback rayCastCb ) : bool |
註冊RayCastMgr
|
|
UnRegister ( RayCastCallback rayCastCb ) : bool |
反註冊RayCastMgr
|
Method | Description | |
---|---|---|
ResetLayerMask ( ) : void |
設定mask
|
|
Start ( ) : void | ||
Update ( ) : void |
測試用.
|
Method | Description | |
---|---|---|
RayCastMgr ( ) : System.Collections |
public OnRayCast ( Vector3 hitPozs, Camera cam, float dis = 1000f ) : void | ||
hitPozs | Vector3 | position Vector3 list |
cam | Camera | |
dis | float | |
return | void |
public Register ( string layers, RayCastCallback rayCastCb ) : bool | ||
layers | string | layer name |
rayCastCb | RayCastCallback | callback(RaycastHit[] rayCastHit) |
return | bool |
public UnRegister ( RayCastCallback rayCastCb ) : bool | ||
rayCastCb | RayCastCallback | callback |
return | bool |