This commit is contained in:
2026-06-04 10:42:23 +07:00
parent e7e90790c9
commit 9be2242378
4166 changed files with 53005 additions and 11401 deletions

View File

@@ -0,0 +1,38 @@
using UnityEngine;
using System.Collections;
using UnityEditor;
using Invector.vCharacterController;
namespace Invector.vShooter
{
public partial class vMenuComponent
{
[MenuItem("Invector/Shooter/Components/LockOn (Player Shooter Only)")]
static void LockOnShooterMenu()
{
if (Selection.activeGameObject && Selection.activeGameObject.GetComponent<Invector.vCharacterController.vThirdPersonInput>() != null)
Selection.activeGameObject.AddComponent<vLockOnShooter>();
else
Debug.Log("Please select a Player to add the component.");
}
[MenuItem("Invector/Shooter/Components/DrawHide ShooterWeapons")]
static void DrawShooterWeaponMenu()
{
if (Selection.activeGameObject && Selection.activeGameObject.GetComponent<Invector.vCharacterController.vThirdPersonInput>() != null)
Selection.activeGameObject.AddComponent<vDrawHideShooterWeapons>();
else
Debug.Log("Please select a Player to add the component.");
}
[MenuItem("Invector/Shooter/Components/ThrowObject")]
static void ThrowObjectMenu()
{
if (Selection.activeGameObject && Selection.activeGameObject.GetComponent<Invector.vCharacterController.vThirdPersonInput>() != null)
Selection.activeGameObject.AddComponent<Throw.vThrowManager>();
else
Debug.Log("Please select a Player to add the component.");
}
}
}