mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-10-11 18:19:11 +00:00
Added a Move onto next area in crowds :) 👍
read title.
This commit is contained in:
1 parent
11a2af2f5f
commit
8c084b2e01
5 files changed
+70
-100
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user