Пример #1
0
    public HumanHealthBar(Human human)
    {
        this.human = human;
        AddChild(bg = new FSprite("Arena/HumanHealthBar_BG"));
        AddChild(border = new FSprite("Arena/HumanHealthBar_Border"));
        AddChild(inner = new FWipeSprite("Arena/HumanHealthBar_Inner"));

        bg.color = human.player.player.color.color * new Color(0.2f,0.2f,0.2f,1f);
        inner.color = human.player.player.color.color;

        ListenForUpdate(Update);
        SetPercent(1.0f);
    }
Пример #2
0
    public HumanHealthBar(Human human)
    {
        this.human      = human;
        AddChild(bg     = new FSprite("Arena/HumanHealthBar_BG"));
        AddChild(border = new FSprite("Arena/HumanHealthBar_Border"));
        AddChild(inner  = new FWipeSprite("Arena/HumanHealthBar_Inner"));

        bg.color    = human.player.player.color.color * new Color(0.2f, 0.2f, 0.2f, 1f);
        inner.color = human.player.player.color.color;

        ListenForUpdate(Update);
        SetPercent(1.0f);
    }