40 lines
931 B
C#
40 lines
931 B
C#
using Invector.vItemManager;
|
|
using Sirenix.OdinInspector;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace Beyond
|
|
{
|
|
public class WeaponSwitcher : MonoBehaviour
|
|
{
|
|
vItemManager m_itemMgr;
|
|
[Button]
|
|
public void SwitchRightWeapon()
|
|
{
|
|
var eA = m_itemMgr.inventory.equipAreas[0];
|
|
//eA.onPickUpItemCallBack
|
|
/*
|
|
var items = m_itemMgr.GetItemsInEquipArea(0);
|
|
Debug.Log("Items in equip area 0");
|
|
|
|
foreach (var it in items)
|
|
{
|
|
Debug.Log(it.name);
|
|
}
|
|
*/
|
|
eA.NextEquipSlot();
|
|
}
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
m_itemMgr = GetComponent<vItemManager>();
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|
|
} |