mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-11-11 04:22:40 +00:00
Clouds and Book triggers
This commit is contained in:
1 parent
ea2a88b5ea
commit
38baefcf2d
70 files changed
+2302
-41
No files matched your search
@@ -25,17 +25,26 @@ public abstract class Trigger : MonoBehaviour
|
||||
Debug.Log("entered");
|
||||
isActive = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void OnTriggerExit2D(Collider2D other) {
|
||||
if(other.CompareTag("Player")) {
|
||||
else {
|
||||
|
||||
isActive = false;
|
||||
Debug.Log("exit");
|
||||
}
|
||||
if(forceInteract && repeatable) {
|
||||
hasOccurred = false;
|
||||
|
||||
if(forceInteract && repeatable) {
|
||||
hasOccurred = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// private void OnTriggerExit2D(Collider2D other) {
|
||||
// if(other.CompareTag("Player")) {
|
||||
// isActive = false;
|
||||
// Debug.Log("exit");
|
||||
// }
|
||||
// if(forceInteract && repeatable) {
|
||||
// hasOccurred = false;
|
||||
// }
|
||||
// }
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user