void Start() { character = GetComponent <CharacterRaycaster>(); timeSinceJumped = 10f; jumpsAllowedLeft = maxJumpsAllowed; AnimatorBehaviour.GetAnimator(animator); }
private void Start() { timerReload = cooldown; timerImmobile = Random.Range(0, 5); soldado = new AICharacter(life, cooldown, shotPasta); raycaster = GetComponent <CharacterRaycaster>(); pastaLoot = GetComponentInChildren <PastaCollectible>(true); //AnimatorBehaviour.GetAnimator(soldadoGraphics.GetComponent<Animator>()); }
private void Start() { chargeTo = ChargeTo.None; timerCharge = -1; timerImmobile = -1; timerAttack = -1; brute = new AICharacter(life, cacPower, chargePower, hitForCharge, hitForCharge, walkSpeed, chargeSpeed); raycaster = GetComponent <CharacterRaycaster>(); spriteRenderer = GetComponentInChildren <SpriteRenderer>(); pastaLoot = GetComponentsInChildren <PastaCollectible>(true); }
void Start() { raycaster = GetComponent <CharacterRaycaster>(); }