Example #1
0
 public override void Reset()
 {
     this.boolVariable = null;
     this.isTrue = null;
     this.isFalse = null;
     this.everyFrame = false;
 }
		public override void Reset()
		{
			gameObject = null;
			clipName = null;
			animationTriggerEvent = null;
			animationCompleteEvent = null;
		}
 public override void Reset()
 {
     qualityIndex = null;
     qualityName = null;
     qualityFoundEvent = null;
     qualityNotFoundEvent = null;
 }
		public override void Reset()
		{
			gameObject = null;
			storeNextChild = null;
			loopEvent = null;
			finishedEvent = null;
		}
 public override void Reset()
 {
     trueEvent = null;
     falseEvent = null;
     store = null;
     everyFrame = false;
 }
Example #6
0
		public override void Reset()
		{
			eventTarget = null;
			sendEvent = null;
			delay = null;
			everyFrame = false;
		}
 public override void Reset()
 {
     gameObject = null;
     isMine = null;
     isMineEvent = null;
     isNotMineEvent = null;
 }
		public override void Reset()
		{
			gameObject = null;
			reference = null;
			alreadyExistsEvent = null;
			
		}
Example #9
0
		public override void Reset()
		{
			boolVariables = null;
			sendEvent = null;
			storeResult = null;
			everyFrame = false;
		}
 /// <summary>
 /// Resets this instance to default values.
 /// </summary>
 public override void Reset()
 {
     score = null;
     previousScore = null;
     change = null;
     sendEvent = null;
 }
 public override void Reset()
 {
     boolVariable = null;
     isTrue = null;
     isFalse = null;
     everyFrame = false;
 }
		public override void Reset()
		{
			floatVariable = null;
			leftValue = 0;
			rightValue = 100;
			changedEvent = null;
		}
 public override void Reset()
 {
     customPropertyKey = "My Property";
     customPropertyValue = null;
     successEvent = null;
     failureEvent = null;
 }
 public override void Reset()
 {
     this.gameObject = null;
     this.affectMassCenter = null;
     this.affectMassCenterEvent = null;
     this.doNotAffectMassCenterEvent = null;
 }
		public override void Reset()
		{
			text = null;
			maxLength = 25;
			style = "TextField";
			changedEvent = null;
		}
		public override void Reset()
		{
			floatVariable = null;
			topValue = 100;
			bottomValue = 0;
			changedEvent = null;
		}
        public override void Reset()
        {
            email = null;

            successEvent = null;
            errorEvent = null;
        }
		public override void Reset()
		{
			cause = null;
			
			successEvent = null;
			failureEvent = null;
		}
Example #19
0
		public override void Reset()
		{
			levelIndex = null;
			additive = false;
			loadedEvent = null;
			dontDestroyOnLoad = true;
		}
Example #20
0
        public override void Reset()
        {
            objectId = new FsmString {UseVariable =true};

            successEvent = null;
            errorEvent = null;
        }
 public override void Reset()
 {
     ArrayListReference = "";
     store = null;
     foundEvent = null;
     notFoundEvent = null;
 }
 public override void Reset()
 {
     gameObject = null;
     isOnOffMeshLink = null;
     isOnOffMeshLinkEvent = null;
     isNotOnOffMeshLinkEvent = null;
 }
 public override void Reset()
 {
     floatValue = 0f;
     isPositive = null;
     isNegative = null;
     everyFrame = false;
 }
		public override void Reset()
		{
			gameObject = null;
			sendEvent = null;
			text = null;
			wasCanceled = null;
		}
 public override void Reset()
 {
     array1 = null;
     array2 = null;
     SequenceEqual = null;
     SequenceNotEqual = null;
 }
		public override void Reset()
		{
			trigger =  PlayMakerUnity2d.Trigger2DType.OnTriggerEnter2D;
			collideTag = new FsmString(){UseVariable=true};
			sendEvent = null;
			storeCollider = null;
		}
 /// <summary>
 /// Resets this instance to default values.
 /// </summary>
 public override void Reset()
 {
     timerName = null;
     ticks = null;
     ticksSubtracted = null;
     sendEvent = null;
 }
		public override void Reset()
		{
			gameObject = null;
			affectMassCenter = null;
			affectMassCenterEvent = null;
			doNotAffectMassCenterEvent = null;
		}
		public override void Reset ()
		{
			disconnectionLabel = null;
			lostConnectionEvent = null;
			disConnectedEvent = null;
			
		}
 public override void Reset()
 {
     gameObject = null;
     failureEvent = null;
     reference = null;
     index = null;
 }
Example #31
0
 public override void Reset()
 {
     trueEvent   = null;
     falseEvent  = null;
     storeResult = null;
 }
Example #32
0
 public override void Reset()
 {
     gameObject = null;
     sendEvent  = null;
 }
Example #33
0
 public override void Reset()
 {
     buttonName  = "Fire1";
     sendEvent   = null;
     storeResult = null;
 }
 public override void Reset()
 {
     sendEvent = null;
 }
Example #35
0
 public override void Reset()
 {
     sendEvent   = null;
     storeResult = null;
 }
 public override void Reset()
 {
     this.disconnectionLabel  = null;
     this.lostConnectionEvent = null;
     this.disConnectedEvent   = null;
 }
Example #37
0
 public override void Reset()
 {
     gameObject   = null;
     failureEvent = null;
 }
Example #38
0
 public override void Reset()
 {
     time        = 1f;
     finishEvent = null;
     realTime    = false;
 }
 public override void Reset()
 {
     sendEvent   = null;
     key         = KeyCode.None;
     storeResult = null;
 }
Example #40
0
 public override void Reset()
 {
     gameObject           = null;
     OnSeekCompletedEvent = null;
 }
 public override void Reset()
 {
     gameTypeName         = null;
     HostListArrivedEvent = null;
 }
        public override void Reset()
        {
            base.Reset();

            gameObject = null;

            by = new FsmVector3 {
                UseVariable = false
            };
            duration = new FsmFloat {
                UseVariable = false
            };
            setSpeedBased = new FsmBool {
                UseVariable = false, Value = false
            };
            snapping = new FsmBool {
                UseVariable = false, Value = false
            };

            setRelative = new FsmBool {
                UseVariable = false, Value = false
            };

            playInReverse = new FsmBool {
                UseVariable = false, Value = false
            };
            setReverseRelative = new FsmBool {
                UseVariable = false, Value = false
            };

            startEvent        = null;
            finishEvent       = null;
            finishImmediately = new FsmBool {
                UseVariable = false, Value = false
            };

            stringAsId = new FsmString {
                UseVariable = false
            };
            tagAsId = new FsmString {
                UseVariable = false
            };

            startDelay = new FsmFloat {
                Value = 0
            };

            selectedEase = DOTweenActionsEnums.SelectedEase.EaseType;
            easeType     = Ease.Linear;

            loops = new FsmInt {
                Value = 0
            };
            loopType = LoopType.Restart;

            autoKillOnCompletion = new FsmBool {
                Value = true
            };
            recyclable = new FsmBool {
                Value = false
            };

            updateType          = UpdateType.Normal;
            isIndependentUpdate = new FsmBool {
                Value = false
            };

            debugThis = new FsmBool {
                Value = false
            };
        }
 public override void Reset()
 {
     finishedEvent            = null;
     particleSystemGameObject = null;
 }
Example #44
0
 public override void Reset()
 {
     this.buttonName  = "Fire1";
     this.sendEvent   = null;
     this.storeResult = null;
 }
Example #45
0
 public override void Reset()
 {
     base.Reset();
     onSubmitEvent = null;
 }
        /*
         * Room changes required for the randomizer to function on any mode
         * For example, removing certain vanilla item locations which can't be handled by RandomizerAction
         */

        public static void ApplyRandomizerChanges(Scene newScene)
        {
            switch (newScene.name)
            {
            // Prevent Grimm encounter which gives Grimmchild
            case SceneNames.Grimm_Main_Tent:
                PlayerData.instance.metGrimm = true;
                break;

            // Prevent reading tablet which gives completion percentage
            case SceneNames.Room_Final_Boss_Atrium:
                GameObject.Find("Tut_tablet_top").LocateMyFSM("Inspection").GetState("Init").ClearTransitions();
                break;

            // Removes the prompt to donate to the 3000 geo fountain in Basin
            case SceneNames.Abyss_04:
                Object.Destroy(GameObject.Find("Fountain Donation"));
                break;

            // Opens lifeblood door in Abyss with any amount of blue health
            case SceneNames.Abyss_06_Core:
                if (PlayerData.instance.healthBlue > 0 || PlayerData.instance.joniHealthBlue > 0 || GameManager.instance.entryGateName == "left1")
                {
                    PlayerData.instance.SetBoolInternal("blueVineDoor", true);
                    PlayMakerFSM BlueDoorFSM = GameObject.Find("Blue Door").LocateMyFSM("Control");
                    BlueDoorFSM.GetState("Init").RemoveTransitionsTo("Got Charm");
                }
                break;

            // Removes trigger for Void Heart sequence
            case SceneNames.Abyss_15:
                GameObject.Find("Dream Enter Abyss").LocateMyFSM("Control").GetState("Init").RemoveTransitionsTo("Idle");
                GameObject.Find("Dream Enter Abyss").LocateMyFSM("Control").GetState("Init").AddTransition("FINISHED", "Inactive");
                break;

            // Automatically unlock Godseeker and add an action to the Godtuner spot to remove simple key on purchase
            case SceneNames.GG_Waterways:
                PlayerData.instance.SetBool("godseekerUnlocked", true);
                if (GameObject.Find("Randomizer Shiny") != null)
                {
                    PlayMakerFSM godtuner = GameObject.Find("Randomizer Shiny").LocateMyFSM("Shiny Control");
                    godtuner.GetState(godtuner.GetState("Charm?").Transitions.First(t => t.EventName == "YES").ToState).AddFirstAction(new RandomizerExecuteLambda(() => PlayerData.instance.DecrementInt("simpleKeys")));
                }
                break;

            // Spawns mawlek shard out of bounds and moves it inbounds when mawlek is killed
            case SceneNames.Crossroads_09:
                if (GameObject.Find("Randomizer Shiny") is GameObject mawlekShard)
                {
                    mawlekShard.transform.SetPositionY(100f);
                    IEnumerator mawlekDead()
                    {
                        yield return(new WaitUntil(() => PlayerData.instance.killedMawlek));

                        mawlekShard.transform.SetPositionY(10f);
                        mawlekShard.transform.SetPositionX(61.5f);
                    }

                    GameManager.instance.StartCoroutine(mawlekDead());
                }
                break;

            // Removes Grubfather rewards corresponding to randomizer items
            case SceneNames.Crossroads_38:
                Object.Destroy(GameObject.Find("Reward 5"));      //Mask
                Object.Destroy(GameObject.Find("Reward 10"));     //Charm
                Object.Destroy(GameObject.Find("Reward 16"));     //Rancid Egg
                Object.Destroy(GameObject.Find("Reward 23"));     //Relic
                Object.Destroy(GameObject.Find("Reward 31"));     //Pale Ore
                Object.Destroy(GameObject.Find("Reward 38"));     //Relic
                Object.Destroy(GameObject.Find("Reward 46"));     //Charm
                break;

            // Remove gate from Ancestral Mound
            case SceneNames.Crossroads_ShamanTemple:
                Object.Destroy(GameObject.Find("Bone Gate"));
                break;

            // Remove Beast's Den hardsave, allow rear access from entrance, destroy Herrah
            case SceneNames.Deepnest_Spider_Town:
                GameManager.instance.sceneData.SaveMyState(new PersistentBoolData
                {
                    sceneName      = "Deepnest_Spider_Town",
                    id             = "Collapser Small (12)",
                    activated      = true,
                    semiPersistent = false
                });

                FsmState denHardSave = GameObject.Find("RestBench Spider").LocateMyFSM("Fade").GetState("Land");
                denHardSave.RemoveActionsOfType <CallMethodProper>();
                denHardSave.RemoveActionsOfType <SendMessage>();
                denHardSave.RemoveActionsOfType <SetPlayerDataBool>();

                Object.Destroy(GameObject.Find("Dreamer Hegemol"));
                Object.Destroy(GameObject.Find("Dream Enter"));
                Object.Destroy(GameObject.Find("Dream Impact"));
                Object.Destroy(GameObject.Find("Shield"));
                break;

            // Edits Dream Nail location to change scene to seer
            case SceneNames.Dream_Nailcollection:
                FSMUtility.LocateFSM(GameObject.Find("Randomizer Shiny"), "Shiny Control").GetState("Finish")
                .AddAction(new RandomizerChangeScene("RestingGrounds_07", "right1"));
                break;

            // Edit Hornet room to open gates after boss fight, and removes dreamer cutscene
            case SceneNames.Fungus1_04:
                foreach (PlayMakerFSM childFSM in GameObject.Find("Cloak Corpse")
                         .GetComponentsInChildren <PlayMakerFSM>(true))
                {
                    if (childFSM.FsmName == "Shiny Control")
                    {
                        SendEvent openGate = new SendEvent
                        {
                            eventTarget = new FsmEventTarget
                            {
                                target      = FsmEventTarget.EventTarget.BroadcastAll,
                                excludeSelf = true
                            },
                            sendEvent  = FsmEvent.FindEvent("BG OPEN"),
                            delay      = 0,
                            everyFrame = false
                        };
                        childFSM.GetState("Destroy").AddFirstAction(openGate);
                        childFSM.GetState("Finish").AddFirstAction(openGate);

                        break;
                    }
                }

                ObjectDestroyer.Destroy("Dreamer Scene 1");
                ObjectDestroyer.Destroy("Hornet Saver");
                ObjectDestroyer.Destroy("Cutscene Dreamer");
                ObjectDestroyer.Destroy("Dream Scene Activate");

                if (!Ref.PD.hornet1Defeated)
                {
                    Object.Destroy(FSMUtility.LocateFSM(GameObject.Find("Camera Locks Boss"), "FSM"));
                }
                break;

            // Make city crest gate openable infinite times and not hard save
            case SceneNames.Fungus2_21:
                FSMUtility.LocateFSM(GameObject.Find("City Gate Control"), "Conversation Control")
                .GetState("Activate").RemoveActionsOfType <SetPlayerDataBool>();

                FsmState gateSlam = FSMUtility.LocateFSM(GameObject.Find("Ruins_gate_main"), "Open")
                                    .GetState("Slam");
                gateSlam.RemoveActionsOfType <SetPlayerDataBool>();
                gateSlam.RemoveActionsOfType <CallMethodProper>();
                gateSlam.RemoveActionsOfType <SendMessage>();
                break;

            // Removes Leg Eater dialogue tree, preventing him from dying
            case SceneNames.Fungus2_26:
                PlayMakerFSM legEater       = FSMUtility.LocateFSM(GameObject.Find("Leg Eater"), "Conversation Control");
                FsmState     legEaterChoice = legEater.GetState("Convo Choice");
                legEaterChoice.RemoveTransitionsTo("Convo 1");
                legEaterChoice.RemoveTransitionsTo("Convo 2");
                legEaterChoice.RemoveTransitionsTo("Convo 3");
                legEaterChoice.RemoveTransitionsTo("Infected Crossroad");
                legEaterChoice.RemoveTransitionsTo("Bought Charm");
                legEaterChoice.RemoveTransitionsTo("Gold Convo");
                legEaterChoice.RemoveTransitionsTo("All Gold");
                legEaterChoice.RemoveTransitionsTo("Ready To Leave");
                legEater.GetState("All Gold?").RemoveTransitionsTo("No Shop");
                Ref.PD.legEaterLeft = false;
                break;

            // Destroy Monomon and remove Quirrel encounter
            case SceneNames.Fungus3_archive_02:
                PlayerData.instance.SetBool("summonedMonomon", true);
                Object.Destroy(GameObject.Find("Inspect Region"));
                Object.Destroy(GameObject.Find("Quirrel Wounded"));
                Object.Destroy(GameObject.Find("Quirrel"));
                Object.Destroy(GameObject.Find("Monomon"));
                Object.Destroy(GameObject.Find("Dream Enter"));
                Object.Destroy(GameObject.Find("Dream Impact"));
                Object.Destroy(GameObject.Find("Shield"));
                break;

            // Make tolls always interactable, in the rare case that lantern is not randomized but RG access through the dark room is expected
            case SceneNames.Mines_33:
                if (RandomizerMod.Instance.Settings.DarkRooms && !RandomizerMod.Instance.Settings.RandomizeKeys)
                {
                    GameObject[] tolls = new GameObject[] { GameObject.Find("Toll Gate Machine"), GameObject.Find("Toll Gate Machine (1)") };
                    foreach (GameObject toll in tolls)
                    {
                        Object.Destroy(FSMUtility.LocateFSM(toll, "Disable if No Lantern"));
                    }
                }
                break;

            // Move Seer back to make room for items, and remove essence rewards
            case SceneNames.RestingGrounds_07:
                GameObject.Find("Dream Moth").transform.Translate(new Vector3(-5f, 0f));

                PlayMakerFSM moth = FSMUtility.LocateFSM(GameObject.Find("Dream Moth"), "Conversation Control");

                PlayerData.instance.dreamReward1 = true;
                moth.FsmVariables.GetFsmBool("Got Reward 1").Value = true;      //Relic
                PlayerData.instance.dreamReward3 = true;
                moth.FsmVariables.GetFsmBool("Got Reward 3").Value = true;      //Pale Ore
                PlayerData.instance.dreamReward4 = true;
                moth.FsmVariables.GetFsmBool("Got Reward 4").Value = true;      //Charm
                PlayerData.instance.dreamReward5 = true;
                moth.FsmVariables.GetFsmBool("Got Reward 5").Value = true;      //Vessel Fragment
                PlayerData.instance.dreamReward5b = true;
                moth.FsmVariables.GetFsmBool("Got Reward 5b").Value = true;     //Skill
                PlayerData.instance.dreamReward6 = true;
                moth.FsmVariables.GetFsmBool("Got Reward 6").Value = true;      //Relic
                PlayerData.instance.dreamReward7 = true;
                moth.FsmVariables.GetFsmBool("Got Reward 7").Value = true;      //Mask Shard
                PlayerData.instance.dreamReward8 = true;
                moth.FsmVariables.GetFsmBool("Got Reward 8").Value = true;      //Skill
                break;

            // Make Sly pickup send Sly back upstairs -- warps player out to prevent resulting softlock from trying to enter the shop from a missing transition
            case SceneNames.Room_Sly_Storeroom:
                FsmState slyFinish = FSMUtility.LocateFSM(GameObject.Find("Randomizer Shiny"), "Shiny Control").GetState("Finish");
                slyFinish.AddAction(new RandomizerSetBool("SlyCharm", true));
                slyFinish.AddAction(new RandomizerChangeScene("Town", "door_sly"));
                break;

            // Many changes to make the desolate dive pickup work properly
            case SceneNames.Ruins1_24:
                // Stop spell container from destroying itself
                PlayMakerFSM quakePickup = FSMUtility.LocateFSM(GameObject.Find("Quake Pickup"), "Pickup");
                quakePickup.GetState("Idle").RemoveActionsOfType <IntCompare>();
                foreach (PlayMakerFSM childFSM in quakePickup.gameObject.GetComponentsInChildren <PlayMakerFSM>(true))
                {
                    if (childFSM.FsmName == "Shiny Control")
                    {
                        // Make spell container spawn shiny instead
                        quakePickup.GetState("Appear").GetActionsOfType <ActivateGameObject>()[1].gameObject
                        .GameObject.Value = childFSM.gameObject;

                        // Make shiny open gates on pickup/destroy
                        SendEvent openGate = new SendEvent
                        {
                            eventTarget = new FsmEventTarget
                            {
                                target      = FsmEventTarget.EventTarget.BroadcastAll,
                                excludeSelf = true
                            },
                            sendEvent  = FsmEvent.FindEvent("BG OPEN"),
                            delay      = 0,
                            everyFrame = false
                        };
                        childFSM.GetState("Destroy").AddFirstAction(openGate);
                        childFSM.GetState("Finish").AddFirstAction(openGate);
                        break;
                    }
                }

                // Stop the weird invisible floor from appearing if dive has been obtained
                if (Ref.PD.quakeLevel > 0)
                {
                    Object.Destroy(GameObject.Find("Roof Collider Battle"));
                }

                // Change battle gate to be destroyed if Soul Master is dead instead of it the player has quake
                FsmState checkQuake = FSMUtility.LocateFSM(GameObject.Find("Battle Gate (1)"), "Destroy if Quake").GetState("Check");
                checkQuake.RemoveActionsOfType <FsmStateAction>();
                checkQuake.AddAction(new RandomizerBoolTest(nameof(PlayerData.killedMageLord), null, "DESTROY", true));
                break;

            // Prevent simple key softlocks
            case SceneNames.Ruins2_04:
                FsmState hotSpringsKey = GameObject.Find("Inspect").LocateMyFSM("Conversation Control").GetState("Got Key?");
                hotSpringsKey.RemoveActionsOfType <IntCompare>();
                hotSpringsKey.AddAction(new RandomizerExecuteLambda(() =>
                {
                    if (GameManager.instance.GetPlayerDataInt("simpleKeys") > 1 || (PlayerData.instance.openedWaterwaysManhole && GameManager.instance.GetPlayerDataInt("simpleKeys") > 0))
                    {
                        PlayMakerFSM.BroadcastEvent("YES");
                    }
                    else
                    {
                        PlayMakerFSM.BroadcastEvent("NO");
                    }
                }));
                break;

            // Destroy Lurien
            case SceneNames.Ruins2_Watcher_Room:
                Object.Destroy(GameObject.Find("Dreamer Lurien"));
                Object.Destroy(GameObject.Find("Dream Enter"));
                Object.Destroy(GameObject.Find("Dream Impact"));
                Object.Destroy(GameObject.Find("Shield"));
                break;

            // Open all colosseum trials
            case SceneNames.Room_Colosseum_01:
                PlayerData.instance.colosseumBronzeOpened = true;
                PlayerData.instance.colosseumSilverOpened = true;
                PlayerData.instance.colosseumGoldOpened   = true;
                GameObject.Find("Silver Trial Board").LocateMyFSM("Conversation Control").GetState("Hero Anim").ClearTransitions();
                GameObject.Find("Silver Trial Board").LocateMyFSM("Conversation Control").GetState("Hero Anim").AddTransition("FINISHED", "Box Up YN");
                GameObject.Find("Gold Trial Board").LocateMyFSM("Conversation Control").GetState("Hero Anim").ClearTransitions();
                GameObject.Find("Gold Trial Board").LocateMyFSM("Conversation Control").GetState("Hero Anim").AddTransition("FINISHED", "Box Up YN");
                break;

            // Destroy Grey Mourner after the flower has been delivered
            case SceneNames.Room_Mansion:
                if (PlayerData.instance.xunFlowerGiven)
                {
                    PlayerData.instance.xunRewardGiven = true;
                }
                break;

            // Removes King's Brand cutscene trigger
            case SceneNames.Room_Wyrm:
                Object.Destroy(GameObject.Find("Avalanche End"));
                break;

            // Open Colosseum gates after picking up resp. items
            case SceneNames.Room_Colosseum_Bronze:
                GameObject.Find("Colosseum Manager").LocateMyFSM("Geo Pool").GetState("Open Gates").AddFirstAction(new RandomizerSetBool("colosseumBronzeCompleted", true, true));
                break;

            case SceneNames.Room_Colosseum_Silver:
                GameObject.Find("Colosseum Manager").LocateMyFSM("Geo Pool").GetState("Open Gates").AddFirstAction(new RandomizerSetBool("colosseumSilverCompleted", true, true));
                break;

            // Prevent simple key softlocks
            case SceneNames.Town:
                FsmState jijiKey = GameObject.Find("Jiji Door").LocateMyFSM("Conversation Control").GetState("Key?");
                jijiKey.RemoveActionsOfType <GetPlayerDataInt>();
                jijiKey.RemoveActionsOfType <IntCompare>();
                jijiKey.AddAction(new RandomizerExecuteLambda(() =>
                {
                    if (GameManager.instance.GetPlayerDataInt("simpleKeys") > 1 || (PlayerData.instance.openedWaterwaysManhole && GameManager.instance.GetPlayerDataInt("simpleKeys") > 0))
                    {
                        PlayMakerFSM.BroadcastEvent("KEY");
                    }
                    else
                    {
                        PlayMakerFSM.BroadcastEvent("NOKEY");
                    }
                }));
                break;
            }
        }
Example #47
0
 public override void Reset()
 {
     gameObject = null;
     OnLoopPointReachedEvent = null;
 }
 public override void Reset()
 {
     UnloadDoneEvent = null;
 }
Example #49
0
 public override void Reset()
 {
     base.Reset();
     sendEvent = null;
 }
Example #50
0
 public override void Reset()
 {
     reference   = null;
     columnCount = null;
     errorEvent  = null;
 }
        public override void OnEnter()
        {
            int i = 0;

            foreach (platformDependentFlags _flag in platforms)
            {
                //UnityEngine.Debug.Log("checking for "+_flag.ToString());
                FsmEvent _event = events[i];

                                #if UNITY_EDITOR
                if (_flag == platformDependentFlags.UNITY_EDITOR)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_EDITOR_WIN
                if (_flag == platformDependentFlags.UNITY_EDITOR_WIN)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_EDITOR_OSX
                if (_flag == platformDependentFlags.UNITY_EDITOR_OSX)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_STANDALONE_OSX
                if (_flag == platformDependentFlags.UNITY_STANDALONE_OSX)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_DASHBOARD_WIDGET
                if (_flag == platformDependentFlags.UNITY_DASHBOARD_WIDGET)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_STANDALONE_WIN
                if (_flag == platformDependentFlags.UNITY_STANDALONE_WIN)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_STANDALONE_LINUX
                if (_flag == platformDependentFlags.UNITY_STANDALONE_LINUX)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_STANDALONE
                if (_flag == platformDependentFlags.UNITY_STANDALONE)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_WEBPLAYER
                if (_flag == platformDependentFlags.UNITY_WEBPLAYER)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_WII
                if (_flag == platformDependentFlags.UNITY_WII)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_IPHONE || UNITY_IOS
                UnityEngine.Debug.Log("we are in UNITY_IPHONE || UNITY_IOS ");

                /*
                 * if (isMatch(platforms[i],platformDependentFlags.UNITY_IPHONE))
                 * {
                 *      UnityEngine.Debug.Log("---------- WE FIRE USING STRING COMPARISION "+_event.Name);
                 *      Fsm.Event(_event);
                 *      return;
                 * }
                 *
                 * if (isMatch(platforms[i],platformDependentFlags.UNITY_IOS))
                 * {
                 *      UnityEngine.Debug.Log("---------- WE FIRE USING STRING COMPARISION "+_event.Name);
                 *      Fsm.Event(_event);
                 *      return;
                 * }
                 *
                 */
                if (Enum.Equals(platforms[i], platformDependentFlags.UNITY_IPHONE))
                {
                    UnityEngine.Debug.Log("---------- WE FIRE " + _event.Name);
                    Fsm.Event(_event);
                    return;
                }
                if (Enum.Equals(platforms[i], platformDependentFlags.UNITY_IOS))
                {
                    UnityEngine.Debug.Log("---------- WE FIRE " + _event.Name);
                    Fsm.Event(_event);
                    return;
                }
                                #endif

                                #if UNITY_ANDROID
                if (_flag == platformDependentFlags.UNITY_ANDROID)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_PS3
                if (_flag == platformDependentFlags.UNITY_PS3)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_XBOX360
                if (_flag == platformDependentFlags.UNITY_XBOX360)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_NACL
                if (_flag == platformDependentFlags.UNITY_NACL)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_FLASH
                if (_flag == platformDependentFlags.UNITY_FLASH)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_BLACKBERRY
                if (_flag == platformDependentFlags.UNITY_BLACKBERRY)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_WP8
                if (_flag == platformDependentFlags.UNITY_WP8)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_METRO
                if (_flag == platformDependentFlags.UNITY_METRO)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_WINRT
                if (_flag == platformDependentFlags.UNITY_WINRT)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_PS4
                if (_flag == platformDependentFlags.UNITY_PS4)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_XBOXONE
                if (_flag == platformDependentFlags.UNITY_XBOXONE)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_TIZEN
                if (_flag == platformDependentFlags.UNITY_TIZEN)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_WP8_1
                if (_flag == platformDependentFlags.UNITY_WP8_1)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_WSA
                if (_flag == platformDependentFlags.UNITY_WSA)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_WSA_8_0
                if (_flag == platformDependentFlags.UNITY_WSA_8_0)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_WSA_8_1
                if (_flag == platformDependentFlags.UNITY_WSA_8_1)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_WINRT_8_0
                if (_flag == platformDependentFlags.UNITY_WINRT_8_0)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_WINRT_8_1
                if (_flag == platformDependentFlags.UNITY_WINRT_8_1)
                {
                    Fsm.Event(_event);
                }
                                #endif

                                #if UNITY_WEBGL
                if (_flag == platformDependentFlags.UNITY_WEBGL)
                {
                    Fsm.Event(_event);
                }
                                #endif


                i++;
            }

            Finish();
        }
Example #52
0
 public override void Reset()
 {
     button      = MouseButton.Left;
     sendEvent   = null;
     storeResult = null;
 }
Example #53
0
 public override void Reset()
 {
     errorEvent   = null;
     errorMessage = "";
     OnReset();
 }
Example #54
0
 public override void Reset()
 {
     isPresent           = null;
     onUserDetectedEvent = null;
     onUserLostEvent     = null;
 }
Example #55
0
 public override void Reset()
 {
     platform      = RuntimePlatform.OSXEditor;
     platformEvent = null;
 }
 public override void Reset()
 {
     offlineMode    = null;
     isOfflineEvent = null;
     isOnlineEvent  = null;
 }
Example #57
0
 public override void Reset()
 {
     NotLoadedEvent = null;
     base.Reset();
 }
 public override void Reset()
 {
     gameObject     = null;
     onStartedEvent = null;
 }
 public override void Reset()
 {
     base.Reset();
     onPointerDownEvent = null;
 }
 public override void Reset()
 {
     gameObject = null;
     OnPreparedCompletedEvent = null;
 }