Skip to content

Commit

Permalink
refactor: dpad options separated from partial class
Browse files Browse the repository at this point in the history
  • Loading branch information
momintlh committed Nov 11, 2024
1 parent 0fab9b3 commit d1ddc0f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
8 changes: 0 additions & 8 deletions Assets/PlayroomKit/modules/Helpers/Helpers.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using SimpleJSON;
using UnityEngine;
Expand Down Expand Up @@ -122,13 +121,6 @@ private static JSONArray CreateJsonArray(string[] array)
}


[Serializable]
public class Dpad
{
public string x;
public string y;
}

private static string ConvertJoystickOptionsToJson(JoystickOptions options)
{
JSONNode joystickOptionsJson = new JSONObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void CreateJoyStick(JoystickOptions options)
throw new NotImplementedException();
}

public PlayroomKit.Dpad DpadJoystick()
public Dpad DpadJoystick()
{
throw new NotImplementedException();
}
Expand Down
11 changes: 11 additions & 0 deletions Assets/PlayroomKit/modules/Options/Dpad.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System;

namespace Playroom
{
[Serializable]
public class Dpad
{
public string x;
public string y;
}
}
3 changes: 3 additions & 0 deletions Assets/PlayroomKit/modules/Options/Dpad.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d1ddc0f

Please sign in to comment.