Ejemplo n.º 1
0
        public void BulletHitPlayer(GameObject player)
        {
            TestPlayer p = (TestPlayer)player;

            p.Health -= Damage;
            if (p.Health < 0)
            {
                p.Health = 0;
            }
            Enabled = false;
        }
Ejemplo n.º 2
0
        public override void Ability2()
        {
            TestPlayer s = Program.Game.ClocestCharachterInRange(this, 200);

            if (!_ability2Active && s != null)
            {
                _ability2Target = s;
                CutInAnimate(_intoBlobAnimation);
                _ability2Active = true;
                ActionLocked    = true;
                Flying          = true;
            }
        }