Inheritance: SpellAnimation
Ejemplo n.º 1
0
 private void Animations_onAnimationCompletedEvent(FireAnimation obj)
 {
     if (obj == FireAnimation.Fire)
     {
         this.destroy();
     }
 }
Ejemplo n.º 2
0
        public bool FireAnim()
        {
            if (!Pulse)
            {
                return(true);
            }

            if (!Services.Host.Backgrounded)
            {
                Device.BeginInvokeOnMainThread(() =>
                {
                    FireAnimation?.Invoke(this, EventArgs.Empty);
                });
            }
            return(true);
        }
Ejemplo n.º 3
0
    void BonusSelecter(string _name)
    {
        //Life / unLife
        //Debug.Log ("Bonus selecter Active");
        //Debug.Log (_name);

        if (_name == "Bomb(Clone)")
        {
            BonusBombAction();
        }
        if (_name == "Life(Clone)" || _name == "Life")
        {
            AddLife();
        }

        //Size ball
        if (_name == "Ball_small(Clone)" || _name == "Small_size(Clone)" || _name == "Ball_small")
        {
            SmallBall();
        }
        if (_name == "Ball_normal(Clone)" || _name == "Normal_size(Clone)")
        {
            ResizeNornal();
        }

        //Speed
        if (_name == "SpeedUP(Clone)" || _name == "SpeedUP")
        {
            GlobalSpeed.IncGlobalSpeed();
        }
        ;
        if (_name == "SpeedDown(Clone)" || _name == "SpeedDown")
        {
            GlobalSpeed.DecGlobalSpeed();
        }
        ;

        //Gun
        if (_name == "Gun" || _name == "Gun(Clone)")
        {
            FireAnimation.ifFire = true; FireAnimation.ResetTimer();  ActiveDeButtons.StackActionForStatus(true);
        }
        ;

        //Shield
        if (_name == "Big_shield" || _name == "Big_shield(Clone)")
        {
            incShield();
        }
        ;
        if (_name == "Small_shield" || _name == "Small_shield(Clone)")
        {
            decreateShield();
        }
        ;

        //Multiple
        if (_name == "Multipli3" || _name == "Multipli3(Clone)")
        {
            Multiple3();
        }
        ;
        if (_name == "Multipli5" || _name == "Multipli5(Clone)")
        {
            Multiple5();
        }
        ;

        //FireBall
        if (_name == "Fire_ball" || _name == "Fire_ball(Clone)")
        {
            Debug.Log("ЗАГЛУШКА");
        }
        ;
    }