Save.cs 356 B

12345678910111213141516
  1. using UnityEngine;
  2. namespace BehaviorDesigner.Runtime.Tasks.Unity.UnityPlayerPrefs
  3. {
  4. [TaskCategory("Unity/PlayerPrefs")]
  5. [TaskDescription("Saves the PlayerPrefs.")]
  6. public class Save : Action
  7. {
  8. public override TaskStatus OnUpdate()
  9. {
  10. PlayerPrefs.Save();
  11. return TaskStatus.Success;
  12. }
  13. }
  14. }