Initial commit

This commit is contained in:
lethanhsonvsp
2025-11-17 15:02:30 +07:00
commit 0a84b9d75e
15481 changed files with 2009655 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 22f5d28791afa30448b52589b9213066
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,19 @@
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.DualShock;
public class LightbarSettings : MonoBehaviour
{
public Color SetColor;
public void ChangeColor()
{
var gamepad = DualShockGamepad.current;
if (gamepad != null)
{
Debug.Log("Current gamepad: " + gamepad);
gamepad.SetLightBarColor(SetColor);
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 1f16c760d1d497144a1927cbb27caad8

View File

@@ -0,0 +1,28 @@
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.DualShock;
public class MotorSettings : MonoBehaviour
{
[Range(0, 1)] public float lowFrequencyMotorSpeed;
[Range(0, 1)] public float highFrequencyMotorSpeed;
public void SetMotorSpeeds()
{
var gamepad = Gamepad.current;
if (gamepad != null)
{
Debug.Log("Current gamepad: " + gamepad);
gamepad.SetMotorSpeeds(lowFrequencyMotorSpeed, highFrequencyMotorSpeed);
}
}
private void OnDisable()
{
var gamepad = Gamepad.current;
if (gamepad != null)
{
gamepad.SetMotorSpeeds(0, 0);
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: bbd4cc500f118d740a1342b2168f32e3