Map changes to ObstanceWIP, Keep_Away, and Platform2
I cleaned up each map and added a few new platforms to Platform2 (2nd map for free-for-fall) and ObstanceWIP. I increased the Field of View to 120 (originally 60) so you can now see maps Platform2 and Keep_Away when you play test it.
This commit is contained in:
@@ -4,15 +4,15 @@ using UnityEngine;
|
||||
public class FallPlatform : MonoBehaviour
|
||||
{
|
||||
public float fallDelay = 2f;
|
||||
public float resetDelay = 2f;
|
||||
public float resetDelay = 4f;
|
||||
|
||||
bool falling;
|
||||
Rigidbody2D rb;
|
||||
//Transform defposition;
|
||||
//Vector3 defposition;
|
||||
|
||||
void Start()
|
||||
{
|
||||
//defposition = gameObject.transform;
|
||||
//defposition = transform.position;
|
||||
rb = transform.parent.GetComponent<Rigidbody2D>();
|
||||
|
||||
}
|
||||
@@ -33,9 +33,11 @@ public class FallPlatform : MonoBehaviour
|
||||
//Respawn();
|
||||
}
|
||||
|
||||
//only resets the object script is attached to, need to fix so platform will reset with fall trigger object
|
||||
//private void Respawn()
|
||||
//{
|
||||
//falling = false;
|
||||
//rb.bodyType = RigidbodyType2D.Static;
|
||||
//gameObject.transform.position = defposition.position;
|
||||
//transform.position = defposition;
|
||||
//}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user