Class vGear_Behaviour
vGear behaviour object.
vGear 行為物件。
Inheritance
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
[DefaultExecutionOrder(-8)]
public class vGear_Behaviour : MonoBehaviour
Fields
branches
List of behaviour branches may be triggered.
可能被觸發的行為分支列表。
Declaration
public List<Behaviour> branches
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<Behaviour> |
enableOnPlay
Enable behaviour when start playing scenario.
當劇情開始時啟用行為。
Declaration
public bool enableOnPlay
Field Value
Type | Description |
---|---|
System.Boolean |
isDisabled
Return true if the behaviour is disabled.
當行為停用時傳回 true。
Declaration
public bool isDisabled
Field Value
Type | Description |
---|---|
System.Boolean |
isPaused
Return true if the behaviour is paused.
當行為暫停時傳回 true。
Declaration
public bool isPaused
Field Value
Type | Description |
---|---|
System.Boolean |
isPlaying
Return true if the behaviour is playing.
當行為執行時傳回 true。
Declaration
public bool isPlaying
Field Value
Type | Description |
---|---|
System.Boolean |
triggeredTimes
Return the times of the behaviour object are triggered.
Declaration
[Header("[Status]")]
public int triggeredTimes
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
Pause()
Pause the behaviour.
暫停行為。
Declaration
public void Pause()
Play()
Play and enable the behaviour.
執行及啟用行為。
Declaration
public void Play()
StartAction(Int32, Int32, Int32)
Force start an action on a plan of a branch.
強制開始某分支某計劃的m一個動作。
StartAction(0, 0, 0)
Declaration
public void StartAction(int behaviour, int plan, int action)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | behaviour | Branch index |
System.Int32 | plan | Plan index |
System.Int32 | action | Action index |
StartActions(Int32)
Force start all actions on a plan of a branch.
強制開始某分支某計劃的所有動作。
StartActions(0)
Declaration
public void StartActions(int behaviour)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | behaviour | Branch index |
StartActions(Int32, Int32)
Force start all actions on a plan of a branch.
強制開始某分支某計劃的所有動作。
StartActions(0, 0)
Declaration
public void StartActions(int behaviour, int plan)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | behaviour | Branch index |
System.Int32 | plan | Plan index |
Stop()
Stop the behaviour.
停止行為。
Declaration
public void Stop()
UnPause()
UnPause the behaviour.
取消暫停行為。
Declaration
public void UnPause()