Updaate
This commit is contained in:
@@ -123,7 +123,7 @@ namespace Invector.vItemManager
|
||||
canEquip = true;
|
||||
|
||||
// search for a StandaloneInputModule in the scene
|
||||
inputModule = FindObjectOfType<StandaloneInputModule>();
|
||||
inputModule = FindFirstObjectByType<StandaloneInputModule>();
|
||||
// if there is none, a new EventSystem is created
|
||||
if (inputModule == null)
|
||||
{
|
||||
@@ -201,7 +201,7 @@ namespace Invector.vItemManager
|
||||
protected virtual IEnumerator ReloadEquipment()
|
||||
{
|
||||
yield return new WaitForEndOfFrame();
|
||||
inputModule = FindObjectOfType<StandaloneInputModule>();
|
||||
inputModule = FindFirstObjectByType<StandaloneInputModule>();
|
||||
|
||||
isOpen = true;
|
||||
|
||||
@@ -397,7 +397,7 @@ namespace Invector.vItemManager
|
||||
}
|
||||
else
|
||||
{
|
||||
inputModule = FindObjectOfType<StandaloneInputModule>();
|
||||
inputModule = FindFirstObjectByType<StandaloneInputModule>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Invector.vItemManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (instance == null) { instance = GameObject.FindObjectOfType<vItemCollectionDisplay>(); }
|
||||
if (instance == null) { instance = GameObject.FindFirstObjectByType<vItemCollectionDisplay>(); }
|
||||
return vItemCollectionDisplay.instance;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ using UnityEngine;
|
||||
|
||||
namespace Invector.vItemManager
|
||||
{
|
||||
[CreateAssetMenu(menuName = "Invector/Inventory/New Item List")]
|
||||
[CreateAssetMenu(menuName = "BABA_YAGA/Invector/Inventory/New Item List")]
|
||||
public class vItemListData : ScriptableObject
|
||||
{
|
||||
public List<vItem> items = new List<vItem>();
|
||||
|
||||
@@ -50,7 +50,7 @@ public class vJoystickMouseInput : BaseInput
|
||||
{
|
||||
base.Awake();
|
||||
if (!inputModule)
|
||||
inputModule = FindObjectOfType<StandaloneInputModule>();
|
||||
inputModule = FindFirstObjectByType<StandaloneInputModule>();
|
||||
if (inputModule)
|
||||
{
|
||||
oldOverride = inputModule.inputOverride;
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace Invector.vItemManager
|
||||
private void vLeaveDropItensWindow(int windowID)
|
||||
{
|
||||
GUILayout.BeginVertical();
|
||||
itemManager = FindObjectOfType<vItemManager>();
|
||||
itemManager = FindFirstObjectByType<vItemManager>();
|
||||
|
||||
if (itemManager)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user