private void Awake() { mOwner = GetComponent <Character>(); mAnimator = GetComponent <Animator>(); if (mFlipTransform != null) { mCachedFlipScale = mFlipTransform.localScale; } mCachedBlockAbility = Owner.AbilityController.GetAbility <BlockAbility>(); mCachedGrabAbility = Owner.AbilityController.GetAbility <GrabAbility>(); }
void Start() { PlayerOne = GameObject.Find ("PlayerOne"); PlayerTwo = GameObject.Find ("PlayerTwo"); // Add Abilities Freeze = GetComponent<FreezeAbility>(); Dash = GetComponent<DashAbility>(); Block = GetComponent<BlockAbility>(); Bomb = GetComponent<BombAbility>(); Attack = GetComponent<AttackAbility>(); // Grant abilties GiveAllAbilities (); }
public void OnAttacked(int damage, Vector3 contactPoint, CharacterComponents character, out DefenceFeedback feedback) { BlockAbility.BlockAttack(characterComponents.attackIndicator, blockConfig, damage, contactPoint, out feedback); }