示例#1
0
    public void ShowBeastExplosionForBeast(MBeast beast)
    {
        MExplosion explosion = new MExplosion(true);
        explosion.x = beast.x;
        explosion.y = beast.y;
        explosion.rotation = RXRandom.Float()*360.0f;
        explosion.shader = FShader.Additive;
        explosion.color = beast.player.color.color;

        AddChild(explosion);
    }
示例#2
0
    public void ShowTowerExplosionForTower(MTower tower)
    {
        MExplosion explosion = new MExplosion(false);
        explosion.x = tower.x;
        explosion.y = tower.y;
        explosion.rotation = RXRandom.Float()*360.0f;
        //explosion.shader = FShader.Additive;
        explosion.color = tower.player.color.addColor; //not that it's not additive but uses addColor

        AddChildAtIndex(explosion,0);
    }