MTower.MTower C# (CSharp) Method

MTower() public method

public MTower ( MPlayer, player ) : System
player MPlayer,
return System
    public MTower(MPlayer player)
    {
        this.player = player;

        health = maxHealth;

        AddChild(_sprite = new FSprite(_towerElements[0].name));
        _sprite.color = player.color.color;

        UpdateHealthPercent();
    }