private static IEnumerator AbsRadSkip(Scene to) { if (to.name != "GG_Radiance") { yield break; } yield return(null); PlayMakerFSM control = GameObject.Find("Boss Control").LocateMyFSM("Control"); UObject.Destroy(GameObject.Find("Sun")); UObject.Destroy(GameObject.Find("feather_particles")); FsmState setup = control.GetState("Setup"); setup.GetAction <Wait>(6).time = 1.5f; setup.RemoveAction(5); setup.RemoveAction(4); setup.ChangeTransition("FINISHED", "Eye Flash"); control.GetAction <Wait>("Title Up", 6).time = 1f; }
public void SetUp() { BoxObject = gameObject.LocateMyFSM("Conversation Control").GetState("Repeat").GetAction <CallMethodProper>(0).gameObject.GameObject.Value; gameObject.LocateMyFSM("Conversation Control").GetState("Convo Choice").RemoveAction(6); gameObject.LocateMyFSM("Conversation Control").GetState("Convo Choice").GetAction <SetFsmString>().setValue = NPC_TITLE; FsmState state = gameObject.LocateMyFSM("Conversation Control").GetState("Precept"); transform.Find("Dream Dialogue").gameObject.LocateMyFSM("npc_dream_dialogue").FsmVariables.FindFsmString("Convo Name").Value = NPC_DREAM_KEY; gameObject.GetComponent <AudioSource>().Stop(); gameObject.GetComponent <AudioSource>().loop = false; state.Actions = new FsmStateAction[] { new CustomCallMethod(SelectDialogue) }; FsmState state2 = gameObject.LocateMyFSM("Conversation Control").CreateState("More"); state2.Actions = new FsmStateAction[] { new CustomCallCoroutine(ContinueConvo) }; state.ChangeTransition("CONVO_FINISH", state2); state2.AddTransition("CONVO_FINISH", state2); }