Esempio n. 1
0
 /// <summary>
 /// On Start() we reset our number of jumps
 /// </summary>
 protected override void Initialization()
 {
     base.Initialization();
     Mana       = GetComponent <CharacterMana>();
     _jump      = GetComponent <CharacterJump>();
     _hMovement = GetComponent <CharacterHorizontalMovement>();
     _attack    = GetComponent <CharacterAttack>();
 }
Esempio n. 2
0
        /// <summary>
        /// On Start() we reset our number of jumps
        /// </summary>
        protected override void Initialization()
        {
            base.Initialization();

            _Mana = GetComponent <CharacterMana>();

            abilitiesToDisable[0] = GetComponent <CharacterHorizontalMovement>();
            abilitiesToDisable[1] = GetComponent <CharacterIceMagic>();
            abilitiesToDisable[2] = GetComponent <CharacterJump>();
            //abilitiesToDisable[4] = GetComponent<CharacterWallClimb>();
            //abilitiesToDisable[5] = GetComponent<CharacterFireMagic>();
            wallClimb = wallClimb = GetComponent <CharacterWallClimb>();
        }