Beispiel #1
0
    public int DrawUUITipHpBar(int instanceId, int hp, int hpMax, Vector2 offset)
    {
        UUITipHpBar tip;

        if (!UUIManager.Singleton.TryToGetTip <UUITipHpBar>(instanceId, out tip))
        {
            tip = UUIManager.Singleton.CreateTip <UUITipHpBar>();
        }
        tip.SetHp(hp, hpMax);
        UUITip.Update(tip, offset);
        return(tip.InstanceID);
    }
Beispiel #2
0
    private int DrawUUINotify(int instanceId, string notify)
    {
        UUINotify tip;

        if (!UUIManager.Singleton.TryToGetTip <UUINotify>(instanceId, out tip))
        {
            tip = UUIManager.Singleton.CreateTip <UUINotify>();
            tip.SetNotify(notify);
        }
        UUITip.Update(tip);
        return(tip.InstanceID);
    }
Beispiel #3
0
    public int DrawHPNumber(int instanceID, int hp, Vector2 offset)
    {
        UUIHpNumber tip;

        if (!UUIManager.Singleton.TryToGetTip <UUIHpNumber>(instanceID, out tip))
        {
            tip = UUIManager.Singleton.CreateTip <UUIHpNumber>();
            tip.SetHp(hp);
        }
        UUITip.Update(tip, offset);
        return(tip.InstanceID);
    }