Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SlowDown : MonoBehaviour{
- public bool SlowMo;
- private Mover mover;
- void Start()
- {
- mover = GetComponent<Mover>();
- SlowMo = true;
- }
- void Udpate()
- {
- }
- void OnTriggerEnter (Collider other)
- {
- if (other.tag == "Player")
- {
- SlowMo = false;
- Destroy(gameObject);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement