diff --git a/Assets/Resources/Scenes/Level3.unity b/Assets/Resources/Scenes/Level3.unity index b17e1e6..bdf8ba3 100644 Binary files a/Assets/Resources/Scenes/Level3.unity and b/Assets/Resources/Scenes/Level3.unity differ diff --git a/Assets/Resources/Scripts/MovingPlatform.cs b/Assets/Resources/Scripts/MovingPlatform.cs index a30ab44..6e8ffb4 100644 --- a/Assets/Resources/Scripts/MovingPlatform.cs +++ b/Assets/Resources/Scripts/MovingPlatform.cs @@ -29,13 +29,13 @@ public class MovingPlatform : MonoBehaviour void OnTriggerEnter2D(Collider2D other) { - if (other.gameObject.tag == "Player") + if (other.gameObject.tag == "Scene_Object") other.transform.parent = transform; } void OnTriggerExit2D(Collider2D other) { - if (other.gameObject.tag == "Player") + if (other.gameObject.tag == "Scene_Object") other.transform.parent = null; } } diff --git a/Assets/Resources/Scripts/Platform.cs b/Assets/Resources/Scripts/Platform.cs index 0355abb..051831a 100644 --- a/Assets/Resources/Scripts/Platform.cs +++ b/Assets/Resources/Scripts/Platform.cs @@ -18,7 +18,7 @@ public class Platform : MonoBehaviour //Updates all of the children's SpriteRender sprites foreach (SpriteRenderer i in GetComponentsInChildren()) { - if (i.tag != "Player") + if (i.tag != "Scene_Object") { i.transform.localScale = new Vector3(scaleFactor, scaleFactor); i.sprite = sprite;