Added a Move onto next area in crowds :) 👍

read title.
This commit is contained in:
Unknown committed 2022-02-26 19:43:26 -06:00
1 parent 11a2af2f5f
commit 8c084b2e01
5 files changed
+70 -100

No files matched your search

+3 -3
View File
@@ -22,7 +22,7 @@ public abstract class Trigger : MonoBehaviour
//checks if player is in range of the trigger
private void OnTriggerStay2D(Collider2D other) {
if(other.CompareTag("Player")) {
Debug.Log("entered");
//Debug.Log("entered");
isActive = true;
}
// else {
@@ -39,7 +39,7 @@ public abstract class Trigger : MonoBehaviour
private void OnTriggerExit2D(Collider2D other) {
if(other.CompareTag("Player")) {
isActive = false;
Debug.Log("exit");
//Debug.Log("exit");
}
if(forceInteract && repeatable) {
hasOccurred = false;
@@ -65,7 +65,7 @@ public abstract class Trigger : MonoBehaviour
else
{
if(Input.GetKeyDown(KeyCode.E)) {
Debug.Log("action");
//Debug.Log("action");
Action();
if(!repeatable)
{