Update
This commit is contained in:
File diff suppressed because one or more lines are too long
1
.gitignore
vendored
1
.gitignore
vendored
@@ -26,3 +26,4 @@ Thumbs.db
|
||||
/Library
|
||||
/Library
|
||||
/Library
|
||||
/Library
|
||||
|
||||
@@ -486,9 +486,6 @@
|
||||
<Reference Include="Unity.Plastic.Antlr3.Runtime">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.unity.collab-proxy@e566cd3e7623\Lib\Editor\Unity.Plastic.Antlr3.Runtime.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Vuforia.Unity.Wrapper">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.ptc.vuforia.engine@58134fb7b422\Vuforia\Plugins\Managed\Runtime\Vuforia.Unity.Wrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.Plastic.Newtonsoft.Json">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.unity.collab-proxy@e566cd3e7623\Lib\Editor\Unity.Plastic.Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
@@ -507,12 +504,6 @@
|
||||
<Reference Include="Unity.VisualScripting.Antlr3.Runtime">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.unity.visualscripting@191c0d7e3b69\Runtime\VisualScripting.Flow\Dependencies\NCalc\Unity.VisualScripting.Antlr3.Runtime.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Vuforia.Unity.Engine">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.ptc.vuforia.engine@58134fb7b422\Vuforia\Plugins\Managed\Runtime\Vuforia.Unity.Engine.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.unity.nuget.newtonsoft-json@4dfd81071c64\Runtime\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.VisualScripting.TextureAssets">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.unity.visualscripting@191c0d7e3b69\Editor\VisualScripting.Core\EditorAssetResources\Unity.VisualScripting.TextureAssets.dll</HintPath>
|
||||
</Reference>
|
||||
@@ -522,9 +513,18 @@
|
||||
<Reference Include="System.Runtime.CompilerServices.Unsafe">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.unity.collections@aea9d3bd5e19\Unity.Collections.Tests\System.Runtime.CompilerServices.Unsafe\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Vuforia.Unity.Wrapper">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.ptc.vuforia.engine@58134fb7b422\Vuforia\Plugins\Managed\Runtime\Vuforia.Unity.Wrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Vuforia.Unity.Editor">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.ptc.vuforia.engine@58134fb7b422\Vuforia\Plugins\Managed\Editor\Vuforia.Unity.Editor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.unity.nuget.newtonsoft-json@4dfd81071c64\Runtime\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Vuforia.Unity.Engine">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.ptc.vuforia.engine@58134fb7b422\Vuforia\Plugins\Managed\Runtime\Vuforia.Unity.Engine.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.Android.Types">
|
||||
<HintPath>C:\Program Files\Unity\Hub\Editor\6000.3.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Types.dll</HintPath>
|
||||
</Reference>
|
||||
|
||||
@@ -88,7 +88,6 @@
|
||||
<Compile Include="Assets\Joystick Pack\Scripts\Joysticks\VariableJoystick.cs" />
|
||||
<Compile Include="Assets\TextMesh Pro\Examples & Extras\Scripts\DropdownSample.cs" />
|
||||
<Compile Include="Assets\TextMesh Pro\Examples & Extras\Scripts\VertexColorCycler.cs" />
|
||||
<Compile Include="Assets\Script\PlayerController.cs" />
|
||||
<Compile Include="Assets\TextMesh Pro\Examples & Extras\Scripts\ObjectSpin.cs" />
|
||||
<Compile Include="Assets\Joystick Pack\Examples\JoystickSetterExample.cs" />
|
||||
<Compile Include="Assets\TextMesh Pro\Examples & Extras\Scripts\TMP_PhoneNumberValidator.cs" />
|
||||
@@ -101,6 +100,7 @@
|
||||
<None Include="Assets\TextMesh Pro\Shaders\TMP_SDF-Mobile Overlay.shader" />
|
||||
<None Include="Assets\TextMesh Pro\Examples & Extras\Fonts\Roboto-Bold - License.txt" />
|
||||
<None Include="Assets\TextMesh Pro\Shaders\TMP_SDF-Mobile-2-Pass.shader" />
|
||||
<None Include="Assets\StreamingAssets\Vuforia\DatabaseName.xml" />
|
||||
<None Include="Assets\TextMesh Pro\Examples & Extras\Fonts\Unity - OFL.txt" />
|
||||
<None Include="Assets\TextMesh Pro\Shaders\TMP_Bitmap.shader" />
|
||||
<None Include="Assets\TextMesh Pro\Examples & Extras\Fonts\Oswald-Bold - OFL.txt" />
|
||||
@@ -112,7 +112,6 @@
|
||||
<None Include="Assets\StreamingAssets\Vuforia\NGTUAN.xml" />
|
||||
<None Include="Assets\Resources\PerformanceTestRunInfo.json" />
|
||||
<None Include="Assets\TextMesh Pro\Shaders\TMP_SDF-Surface-Mobile.shader" />
|
||||
<None Include="Assets\StreamingAssets\Vuforia\DatabaseName.xml" />
|
||||
<None Include="Assets\TextMesh Pro\Shaders\SDFFunctions.hlsl" />
|
||||
<None Include="Assets\TextMesh Pro\Shaders\TMP_SDF-Surface.shader" />
|
||||
<None Include="Assets\TextMesh Pro\Sprites\EmojiOne Attribution.txt" />
|
||||
@@ -532,27 +531,27 @@
|
||||
<Reference Include="nunit.framework">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.unity.ext.nunit@d8c07649098d\net40\unity-custom\nunit.framework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Vuforia.Unity.Wrapper">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.ptc.vuforia.engine@58134fb7b422\Vuforia\Plugins\Managed\Runtime\Vuforia.Unity.Wrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.IO.Hashing">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.unity.collections@aea9d3bd5e19\Unity.Collections.Tests\System.IO.Hashing\System.IO.Hashing.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.VisualScripting.Antlr3.Runtime">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.unity.visualscripting@191c0d7e3b69\Runtime\VisualScripting.Flow\Dependencies\NCalc\Unity.VisualScripting.Antlr3.Runtime.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Vuforia.Unity.Engine">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.ptc.vuforia.engine@58134fb7b422\Vuforia\Plugins\Managed\Runtime\Vuforia.Unity.Engine.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.unity.nuget.newtonsoft-json@4dfd81071c64\Runtime\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Mono.Cecil">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.unity.nuget.mono-cecil@ecb9724e46ff\Mono.Cecil.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Runtime.CompilerServices.Unsafe">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.unity.collections@aea9d3bd5e19\Unity.Collections.Tests\System.Runtime.CompilerServices.Unsafe\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Vuforia.Unity.Wrapper">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.ptc.vuforia.engine@58134fb7b422\Vuforia\Plugins\Managed\Runtime\Vuforia.Unity.Wrapper.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.unity.nuget.newtonsoft-json@4dfd81071c64\Runtime\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Vuforia.Unity.Engine">
|
||||
<HintPath>E:\Learning_Progress\Projects\VR-GAME\Library\PackageCache\com.ptc.vuforia.engine@58134fb7b422\Vuforia\Plugins\Managed\Runtime\Vuforia.Unity.Engine.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Unity.Android.Types">
|
||||
<HintPath>C:\Program Files\Unity\Hub\Editor\6000.3.10f1\Editor\Data\PlaybackEngines\AndroidPlayer\Unity.Android.Types.dll</HintPath>
|
||||
</Reference>
|
||||
|
||||
Binary file not shown.
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4bbe65a3189fc4fd2ab6216ed72509fb
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 60 KiB |
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6bc2d93c104445a0ac032457e18ea65f
|
||||
guid: 324807004dd7492d8fef343995012471
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
|
||||
@@ -13,11 +13,7 @@ public class BallShooter : MonoBehaviour
|
||||
[Header("Shooting Limit")]
|
||||
public float shootCooldown = 1f;
|
||||
private float nextShootTime = 0f;
|
||||
|
||||
public void ShootBall()
|
||||
{
|
||||
PerformShoot(Camera.main.transform.forward, shootForce, upwardForce);
|
||||
}
|
||||
|
||||
|
||||
public void FlickShoot(Vector2 swipeDelta, float swipeTime)
|
||||
{
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class PlayerController : MonoBehaviour
|
||||
{
|
||||
public Joystick joystick; // Kéo Fixed Joystick ở Canvas vào đây
|
||||
public float moveSpeed = 2f;
|
||||
public Animator animator; // Kéo Animator của nhân vật vào đây
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (joystick == null)
|
||||
{
|
||||
Debug.LogWarning("Joystick is not assigned in PlayerController!");
|
||||
return;
|
||||
}
|
||||
|
||||
// Lấy input từ Joystick
|
||||
float horizontal = joystick.Horizontal;
|
||||
float vertical = joystick.Vertical;
|
||||
|
||||
// Di chuyển object theo trục X và Z
|
||||
Vector3 direction = new Vector3(horizontal, 0, vertical).normalized;
|
||||
float currentSpeed = direction.magnitude * moveSpeed;
|
||||
|
||||
transform.Translate(direction * moveSpeed * Time.deltaTime, Space.World);
|
||||
|
||||
// Xoay object mượt mà theo hướng di chuyển
|
||||
if (direction != Vector3.zero)
|
||||
{
|
||||
Quaternion targetRotation = Quaternion.LookRotation(direction);
|
||||
transform.rotation = Quaternion.Slerp(transform.rotation, targetRotation, 15f * Time.deltaTime);
|
||||
}
|
||||
|
||||
// Cập nhật Animator
|
||||
if (animator != null)
|
||||
{
|
||||
// Giả sử Animator có parameter "Speed" kiểu Float
|
||||
animator.SetFloat("Speed", currentSpeed);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 035bae4b47cc0a7409e163485252de07
|
||||
Binary file not shown.
@@ -1,2 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4e22d53a378044afa92b71618a461375
|
||||
guid: b0cb9a37c4d04209be118811f43a7eb7
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<QCARConfig>
|
||||
<Tracking>
|
||||
<ImageTarget name="z7784214748644_b3ccece5f73d2a2e0581f0a58b2b8aa7" size="5.000000 11.105212" />
|
||||
<ImageTarget name="z7784214748644_b3ccece5f73d2a2e0581f0a58b2b8aa7" size="5.000000 3.125000" />
|
||||
</Tracking>
|
||||
</QCARConfig>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 669bdea39257463fa7c229fd50a6e65c
|
||||
guid: 610ed813e87d4642b041806c66f3394a
|
||||
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user