예제 #1
0
 void Start()
 {
     character        = GetComponent <CharacterRaycaster>();
     timeSinceJumped  = 10f;
     jumpsAllowedLeft = maxJumpsAllowed;
     AnimatorBehaviour.GetAnimator(animator);
 }
예제 #2
0
    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>());
    }
예제 #3
0
    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);
    }
예제 #4
0
 void Start()
 {
     raycaster = GetComponent <CharacterRaycaster>();
 }