progress recovered

This commit is contained in:
Rizvee committed 2022-02-26 01:54:10 -06:00
1 parent d49638100e
commit 0629824797
23 files changed
+4372 -543

No files matched your search

+18
View File
@@ -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;
}
}
}