Skip to content

Commit

Permalink
Merge pull request #8 from Studio-23-xyz/dev
Browse files Browse the repository at this point in the history
Update dependency package version
  • Loading branch information
BDeshiDev authored Dec 19, 2023
2 parents 522ca13 + 0b7e73f commit 6f45f02
Show file tree
Hide file tree
Showing 62 changed files with 83 additions and 132 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Threading;
using com.bdeshi.helpers.Input;
using Bdeshi.Helpers.Input;
using Studio23.SS2.InteractionSystem.Core;
using Studio23.SS2.InteractionSystem.Data;
using Cysharp.Threading.Tasks;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Threading;
using com.bdeshi.helpers.Input;
using Bdeshi.Helpers;
using Bdeshi.Helpers.Input;
using Studio23.SS2.InteractionSystem.Core;
using Cysharp.Threading.Tasks;
using UnityEngine;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.Threading;
using com.bdeshi.helpers.Input;
using Bdeshi.Helpers;
using Bdeshi.Helpers.Input;
using Studio23.SS2.InteractionSystem.Core;
using Studio23.SS2.InteractionSystem.Data;
using Cysharp.Threading.Tasks;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using com.bdeshi.helpers.Input;
using Bdeshi.Helpers;
using Bdeshi.Helpers.Input;
using Studio23.SS2.InteractionSystem.Core;
using UnityEngine;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Threading;
using com.bdeshi.helpers.Input;
using Bdeshi.Helpers;
using Bdeshi.Helpers.Input;
using Studio23.SS2.InteractionSystem.Core;
using Studio23.SS2.InteractionSystem.Data;
using Cysharp.Threading.Tasks;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Threading;
using com.bdeshi.helpers.Input;
using Bdeshi.Helpers;
using Bdeshi.Helpers.Input;
using Studio23.SS2.InteractionSystem.Core;
using Cysharp.Threading.Tasks;
using UnityEngine;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Collections.Generic;
using com.bdeshi.helpers.Utility;
using Bdeshi.Helpers.Utility;
using Studio23.SS2.InteractionSystem.Abstract;
using Studio23.SS2.InteractionSystem.Data;
using Studio23.SS2.InteractionSystem.UI;
Expand All @@ -25,9 +25,9 @@ private void Initialize()
_view = GetComponent<InputPromptsViewBase>();
_model.OnPromptsChanged += _view.UpdatePromptsView;

InteractionInputManager.Instance.InspectButton.addPerformedCallback(gameObject, HandleInspectPressed);
InteractionInputManager.Instance.PickupButton.addPerformedCallback(gameObject, HandlePickupPressed);
InteractionInputManager.Instance.ToggleButton.addPerformedCallback(gameObject, HandleTogglePressed);
InteractionInputManager.Instance.InspectButton.AddCancelledCallback(gameObject, HandleInspectPressed);
InteractionInputManager.Instance.PickupButton.AddCancelledCallback(gameObject, HandlePickupPressed);
InteractionInputManager.Instance.ToggleButton.AddCancelledCallback(gameObject, HandleTogglePressed);
}

private async void HandleTogglePressed()
Expand Down Expand Up @@ -82,7 +82,7 @@ private async UniTask DoHoldInteraction(InteractableBase interactableBase)
buttonPrompt.SetProgress(0);

_remainingPressTimer.reset(interactableBase.InteractionHoldTime);
while (interactableBase.InputButton.isHeld)
while (interactableBase.InputButton.IsHeld)
{
_remainingPressTimer.safeUpdateTimer(Time.deltaTime);
buttonPrompt.SetProgress(_remainingPressTimer.Ratio);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Threading;
using com.bdeshi.helpers.Utility;
using Bdeshi.Helpers.Utility;
using Studio23.SS2.InteractionSystem.Abstract;
using Cysharp.Threading.Tasks;
using UnityEngine;
Expand Down Expand Up @@ -31,17 +31,17 @@ public class InspectionManager:MonoBehaviourSingletonPersistent<InspectionManage

private Camera _cam;

protected override void initialize()
protected override void Initialize()
{
_subInteractionFinder = GetComponentInChildren<PlayerInteractionFinder>();
}

private void Start()
{
InteractionInputManager.Instance.InspectionDragButton.addPerformedCallback(gameObject, HandleInspectDragPerformed);
InteractionInputManager.Instance.InspectionDragButton.addCancelledCallback(gameObject, HandleInspectDragCancelled);
InteractionInputManager.Instance.InteractCancelButton.addPerformedCallback(gameObject, HandleInspectionCancelled);
InteractionInputManager.Instance.InspectResetButton.addPerformedCallback(gameObject, HandleInspectResetPerformed);
InteractionInputManager.Instance.InspectionDragButton.AddPerformedCallback(gameObject, HandleInspectDragPerformed);
InteractionInputManager.Instance.InspectionDragButton.AddCancelledCallback(gameObject, HandleInspectDragCancelled);
InteractionInputManager.Instance.InteractCancelButton.AddPerformedCallback(gameObject, HandleInspectionCancelled);
InteractionInputManager.Instance.InspectResetButton.AddPerformedCallback(gameObject, HandleInspectResetPerformed);
}

private void HandleInspectResetPerformed()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System.Collections.Generic;
using com.bdeshi.helpers.Input;
using com.bdeshi.helpers.Utility;
using Bdeshi.Helpers.Input;
using Bdeshi.Helpers.Utility;
using Bdeshi.Helpers;
using Bdeshi.Helpers.Utility;
using UnityEngine;
using UnityEngine.InputSystem;

Expand Down Expand Up @@ -45,7 +47,7 @@ public class InteractionInputManager : MonoBehaviourSingletonPersistent<Interact


#endregion
protected override void initialize()
protected override void Initialize()
{
Buttons = new List<InputButtonSlot>();
InspectButton = new InputButtonSlot("InspectButton");
Expand Down Expand Up @@ -84,10 +86,10 @@ void Bind(InputButtonSlot slot, InputActionReference action)
{
if(action == null)
{
Debug.LogWarning("action null for button " + slot.buttonName);
Debug.LogWarning("action null for button " + slot.ButtonName);
return;
}
slot.bind(action);
slot.Bind(action);
Buttons.Add(slot);
}
void OnEnable()
Expand Down Expand Up @@ -133,7 +135,7 @@ private void UnBindAll()

foreach (var inputButtonSlot in Buttons)
{
inputButtonSlot.unBind();
inputButtonSlot.UnBind();
}

_inspectMoveAction.action.performed -= OnMovePerformed;
Expand All @@ -159,7 +161,7 @@ public static void PlayModeExitCleanUp()
return;
foreach (var inputButtonSlot in Instance.Buttons)
{
inputButtonSlot.cleanup();
inputButtonSlot.Cleanup();
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using System.Threading;
using com.bdeshi.helpers.Utility;
using Bdeshi.Helpers.Utility;
using Studio23.SS2.InteractionSystem.Abstract;
using Studio23.SS2.InteractionSystem.Data;
using Cysharp.Threading.Tasks;
Expand Down Expand Up @@ -133,7 +133,7 @@ public async void StartNewInteraction(InteractableBase newInteractableBase)
}
}

protected override void initialize()
protected override void Initialize()
{
RefreshCancellationToken();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Collections.Generic;
using com.bdeshi.helpers.Utility.Extensions;
using Bdeshi.Helpers.Utility.Extensions;
using Studio23.SS2.InteractionSystem.Abstract;
using Studio23.SS2.InteractionSystem.Data;
using UnityEngine;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
using com.bdeshi.helpers.Input;
using Bdeshi.Helpers.Input;
using Studio23.SS2.InteractionSystem.Abstract;
using UnityEngine;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using com.bdeshi.helpers.Input;
using Bdeshi.Helpers;
using Bdeshi.Helpers.Input;
using Studio23.SS2.InteractionSystem.Core;
using Studio23.SS2.InteractionSystem.Data;
using UnityEngine;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using com.bdeshi.helpers.Input;
using Bdeshi.Helpers.Input;
using Studio23.SS2.InteractionSystem.Data;
using UnityEngine;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using System.Collections.Generic;
using com.bdeshi.helpers.Utility;
using Bdeshi.Helpers.Utility;
using UnityEngine;

namespace Studio23.SS2.InteractionSystem.Samples.Demo1
{
public class TestInventory:MonoBehaviourSingletonPersistent<TestInventory>
{
HashSet<string> _items;
protected override void initialize()
protected override void Initialize()
{
_items = new HashSet<string>();
}
Expand Down
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/Plugins/Demigiant/DOTween/DOTween.dll
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Loading

0 comments on commit 6f45f02

Please sign in to comment.