Skip to content

Commit

Permalink
[Chore] Added Samples folder with a scene example
Browse files Browse the repository at this point in the history
Also:

- package.json and Vibration.asmdef changes and sync with the forked [master] branch
  • Loading branch information
mfdeveloper committed Sep 12, 2023
1 parent e8457fd commit 6af29c6
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 23 deletions.
8 changes: 7 additions & 1 deletion Runtime/Vibration.asmdef
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"name": "Vibration",
"rootNamespace": "VibrationPlugin",
"references": [],
"includePlatforms": [],
"includePlatforms": [
"Android",
"Editor",
"iOS",
"WebGL"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
Expand Down
2 changes: 1 addition & 1 deletion Example.meta → Samples.meta

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

8 changes: 8 additions & 0 deletions Samples/VibrationExample.meta

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

Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ public class VibrationExample : MonoBehaviour
public Text inputPattern;
public Text inputRepeat;

// Use this for initialization
void Start ()
{

}

// Update is called once per frame
void Update ()
{

}

public void TapVibrate ()
{
Vibration.Vibrate ();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 16 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
{
"name": "com.benoitfreslon.unity.vibrations",
"displayName": "Mobile Vibration",
"name": "com.benoitfreslon.vibration",
"author": "Benoit Freslon, AminSojoudi, SH42913",
"displayName": "Vibration",
"description": "Native free plugin for Unity for iOS and Android. Use custom vibrations on mobile.",
"unity": "2019.3",
"version": "0.0.4",
"unity": "2017.4",
"author": {
"name": "Benoit Freslon",
"url": "https://benoitfreslon.com"
"keywords": [],
"repository": {
"type": "git",
"url": "https://github.com/BenoitFreslon/Vibration"
},
"description": "Native plugin for Unity for iOS and Android. Use custom vibrations and haptics on mobile.",
"dependencies": {},
"repository": {}
"samples": [
{
"displayName": "Vibration Example",
"description": "A basic scene with vibration example",
"path": "Samples~/VibrationExample"
}
]
}

0 comments on commit 6af29c6

Please sign in to comment.