summaryrefslogtreecommitdiff
path: root/Client/Assets/Behavior Designer/Runtime/Basic Tasks/PlayerPrefs/DeleteAll.cs
blob: 0562303f99c71b56c49856bae61b48fde7a5d98e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using UnityEngine;

namespace BehaviorDesigner.Runtime.Tasks.Basic.UnityPlayerPrefs
{
    [TaskCategory("Basic/PlayerPrefs")]
    [TaskDescription("Deletes all entries from the PlayerPrefs.")]
    public class DeleteAll : Action
    {
        public override TaskStatus OnUpdate()
        {
            PlayerPrefs.DeleteAll();

            return TaskStatus.Success;
        }
    }
}