Advertisement
Guest User

"changes"

a guest
Dec 21st, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. ----------------------- Assets/TreadmillForceAsserter.cs -----------------------
  2. index 590217f..c2be655 100644
  3. @@ -3,8 +3,8 @@ using System.Collections;
  4.  
  5. public class TreadmillForceAsserter : MonoBehaviour {
  6.  
  7. - public bool IsEnabled = true;
  8. -
  9. + public bool IsEnabled = true;
  10. +
  11. public Transform playerDefaultPos;
  12.  
  13. void OnCollisionStay2D(Collision2D coll)
  14. @@ -29,12 +29,12 @@ public class TreadmillForceAsserter : MonoBehaviour {
  15. }
  16. }
  17.  
  18. - void OnTriggerStay2D(Collider2D coll)
  19. - {
  20. - if(coll.gameObject.GetComponent<MonsterController>() != null)
  21. - {
  22. - //Debug.Log("Collidor");
  23. - coll.gameObject.GetComponent<Rigidbody2D>().AddForce(new Vector2(-22.5f, 0));
  24. - }
  25. + void OnTriggerStay2D(Collider2D coll)
  26. + {
  27. + if(coll.gameObject.GetComponent<MonsterController>() != null)
  28. + {
  29. + //Debug.Log("Collidor");
  30. + coll.gameObject.GetComponent<Rigidbody2D>().AddForce(new Vector2(-22.5f, 0));
  31. + }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement