Exemplo n.º 1
0
    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>();
    }
Exemplo n.º 2
0
	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 ();
	}
Exemplo n.º 3
0
 public void OnAttacked(int damage, Vector3 contactPoint, CharacterComponents character, out DefenceFeedback feedback)
 {
     BlockAbility.BlockAttack(characterComponents.attackIndicator,
                              blockConfig, damage, contactPoint, out feedback);
 }