- Home /
 
               Question by 
               marcelowy13 · Mar 24, 2014 at 05:47 AM · 
                buttonnotmember  
              
 
              'Set' is not a member of 'UnityEngine.Animator'.
hello i have this problem in this script
 #pragma strict
 private var animator: Animator;
 
 var h: float; // Obrót
 
 var v: float; // Przód/tył
 
 var hSpeed: int;
 
 function Start () {
 
          animator = GetComponent(Animator);
 }
 
 function Update () {
 
 h = Input.GetAxis('Horizontal');
  
     v = Input.GetAxis('Vertical');
  
 if(Input.GetButton('Jump'))
  
                     animator.SetBool('Jump',true);
  
                else 
  
                     animator.SetBool('Jump',false);
  
     if(Input.GetButton('Run'))
  
                     animator.SetButton('Run',true);
  
                else
  
                     Animator.Set.Bool('Bieg',false);    
 }
 
 function FixedUpdate () {
 
 var h : float = Input.GetAxis("Mouse X");
 
 transform.Rotate(0, h, 0);
 
 animator.SetFloat ("Speed", v);
 
 animator.SetFloat ("Direction", h);
 
 }
 
     if(Input.GetKeyDown(KeyCode.Tab)){
  
                 Screen.showCursor = false;
  
             }
  
             else     
  
             {
  
                 Screen.showCursor = true;
  
             }
               Comment
              
 
               
              Answer by fafase · Mar 24, 2014 at 05:49 AM
Really be a little careful and that will save you some time...
                 Animator.Set.Bool('Bieg',false);    
This is all wrong and the compiler is telling you so.
                  animator.SetBool('Bieg',false);    
Your answer
 
 
             Follow this Question
Related Questions
A node in a childnode? 1 Answer
On off game objects 1 Answer
Audio says it is playing in audiosource but is not... 2 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                