Join our Discord Channel
public class ApplyTemplateTest : MonoBehaviour { public PlayMakerFSM targetFsm; public FsmTemplate testFsmTemplate; public void OnEnable() { applyTemplate(); } void OnDisable() { targetFsm.enabled = false; } void applyTemplate() { if (targetFsm != null && testFsmTemplate != null) { targetFsm.SetFsmTemplate(testFsmTemplate); targetFsm.enabled = true; } }}
public class playmakerTest : MonoBehaviour { public GameObject testMonsterObject; void Start () { StartCoroutine("enableChage"); } IEnumerator enableChage() { yield return new WaitForSeconds(1.5f); testMonsterObject.SetActive(!testMonsterObject.activeSelf); StartCoroutine("enableChage"); }}