private void Start() { sm.Start(); sm.SetBoolImmediate( GameBool.HasSeenInstructions, PlayerPrefs.HasKey(PlayerPrefKeys.HasSeenInstructions)); sm.ActivateTriggerDeferred(GameTrigger.NextState); }
// @NOTE: you shouldn't do this, I just don't have a ton of time and I'm tired public void GotoNextState() { sm.ActivateTriggerDeferred(Trigger.NextState); }