1
0

Updated Level3 - Caleb Brown

This commit is contained in:
new-00-0ne 2016-01-31 03:21:18 -05:00
parent d654aca5d4
commit fefc995f3a
3 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -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;
}
}

View File

@ -18,7 +18,7 @@ public class Platform : MonoBehaviour
//Updates all of the children's SpriteRender sprites
foreach (SpriteRenderer i in GetComponentsInChildren<SpriteRenderer>())
{
if (i.tag != "Player")
if (i.tag != "Scene_Object")
{
i.transform.localScale = new Vector3(scaleFactor, scaleFactor);
i.sprite = sprite;