void Start() { controller = GetComponent <CharacterController>(); anim_control = GetComponent <CharacterAnimationControl>(); life_control = GetComponent <CharacterLifePoints>(); LastPosition = transform.position; HitDict = CharacterCombat.GetHBDict(gameObject); if (AllowTilt) { current_tilt_value = 0f; initial_tilt_rotation = TiltTarget.transform.rotation; } IsEnemy = !(GetComponent <EnemyAI>() == null); SetHitboxController(); UpdateAxeState(); InitializeImpulse(); if (!IsEnemy) { SetNormalCamera(); } }
void Start() { movement_control = GetComponent <CharacterControl>(); anim = GetComponent <Animator>(); life_control = GetComponent <CharacterLifePoints>(); }