コード例 #1
0
ファイル: CharacterControl.cs プロジェクト: MoMe36/GoWProto
        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();
            }
        }
コード例 #2
0
 void Start()
 {
     movement_control = GetComponent <CharacterControl>();
     anim             = GetComponent <Animator>();
     life_control     = GetComponent <CharacterLifePoints>();
 }