seriously ANIMATOR
Ok, read dozens of similar or identical posts - all give pretty much the same non-working answer. I want to disable the player movement . using ANY ".enable = false" doesn't work. whether I am trying to disable the playerMovement script or the animator. I want the player to freeze when he hits a trigger. Even tried parenting to another object like I would a platform . ANy ideas?
using UnityEngine; using System.Collections;
public class PauseControl : $$anonymous$$onoBehaviour { Animator anim; GameObject Player; void Start () {
     anim = GetComponent <Animator> ();
 }
 
 
 
 void OnTriggerEnter (Collider other)
 {
     if (other.gameObject.tag == "Player")
     {
         stop the damn player!!!!
     }
 }
 
                  }
Your answer
 
             Follow this Question
Related Questions
GO with rigid body, hierarchy best practices 0 Answers
My Player Is moving all over the place! 0 Answers
Ignore players movement when I click on a UI button 0 Answers
Moving simultaneously with UP LEFT, W D using GetAxisRaw. Rotating localScale to flip animation 2 Answers
How to stop player (Roll a ball game) from infinite jumping? 0 Answers