SetBehaviour

SetBehaviour(int, StateBehaviour)

public void SetBehaviour(int index, StateBehaviour behaviour) ;

Description

Set StateBehaviour.

Parameters

Parameter Name Description
index Index
behaviour StateBehaviour

Remarks

Note that the original StateBehaviour does not Destroy. If you want to add StateBehaviour, please use AddBehaviour. If you want to do Destroy please use DestroyBehaviour.