Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public class SlowDown : MonoBehaviour{
  2.  
  3. public bool SlowMo;
  4. private Mover mover;
  5.  
  6. void Start()
  7. {
  8. mover = GetComponent<Mover>();
  9. SlowMo = true;
  10. }
  11.  
  12. void Udpate()
  13. {
  14. }
  15.  
  16. void OnTriggerEnter (Collider other)
  17. {
  18. if (other.tag == "Player")
  19. {
  20. SlowMo = false;
  21. Destroy(gameObject);
  22. }
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement