Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     smoothAnim = GetComponent<SmoothAnimScript>();
     if (!crouched)
     {
         InvokeRepeating("Moving", 0.5f, 0.3f);
     }
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     charController = GetComponent<CharacterController>();
     workaround = true;
     smoothAnim = GetComponent<SmoothAnimScript>();
     lookAtMouse = GetComponent<LookAtMouse>();
     if (!crouched)
     {
         InvokeRepeating("Moving", 0.5f, 0.3f);
     }
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     inputCooldownlength = 0.5f;
     inputCooldown = inputCooldownlength;
     animScript = GetComponent<SmoothAnimScript>();
 }
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     //player = GameObject.FindGameObjectWithTag ("Player");
     //playerHealth = player.GetComponent<PlayerHealth> ();
     smooth = player.GetComponent<SmoothAnimScript> ();
 }