private void Start() { bearController = GetComponent <BearController>(); bossPathing = GetComponent <BossPathing2>(); BossMovementStart(); distanceToBite = biteCollider.bounds.size.x; bossPathing.SetOffset(distanceToBite); SetAttacks(); }
private int health; //health /**************************************************************************************************/ //initialize some things public void BossMovementStart() { bossPathing = GetComponent <BossPathing2>(); playerFilter = new ContactFilter2D(); playerFilter.SetLayerMask(bossPathing.playerMask); characterMovement = GetComponent <CharacterMovement>(); characterMovement.StartCharacterSkeleton(); maxNumberOfJumps = 1; maxJumpSpeed = jumpHeight; bossPathing.SetJumpHieght(jumpHeight); canAttack = true; attackCooldown = 2; }