mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-10-11 18:19:11 +00:00
progress recovered
This commit is contained in:
1 parent
d49638100e
commit
0629824797
23 files changed
+4372
-543
No files matched your search
@@ -63,4 +63,22 @@ public class Platform : MonoBehaviour
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
void OnCollisionEnter2D (Collision2D other) {
|
||||
if (other.gameObject.tag == "Player") {
|
||||
other.gameObject.transform.parent = transform;
|
||||
}
|
||||
// if(other.gameObject.tag == "Enemy") {
|
||||
// Debug.Log("take hit");
|
||||
// health.takeHit();
|
||||
// }
|
||||
// if(other.gameObject.tag == "Detection") {
|
||||
// Debug.Log("detect");
|
||||
// other.gameObject.GetComponent<MeanBird>().Detected(transform.position - other.gameObject.transform.position);
|
||||
// }
|
||||
}
|
||||
void OnCollisionExit2D (Collision2D other) {
|
||||
if (other.gameObject.tag == "Platform") {
|
||||
transform.parent = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user