Esempio n. 1
0
        protected override void DoEffect(PlayerController user)
        {
            base.DoEffect(user);
            AkSoundEngine.PostEvent("Play_BOSS_doormimic_turn_01", base.gameObject);
            AIActor nearestEnemy = this.GetNearestEnemy();

            nearestEnemy.Mount(user, tk2dBaseSprite.Anchor.UpperCenter, tk2dBaseSprite.Anchor.LowerCenter, EnemyWorks.MountedBehaviour.LayeringType.ABOVE, 1.5f);
            if (nearestEnemy.behaviorSpeculator != null)
            {
                nearestEnemy.behaviorSpeculator.Stun(1f);
            }
            this.m_currentlyHeldEnemy = nearestEnemy;
        }