Beispiel #1
0
    public static void ShowMobHUD(Mob mob)
    {
        if (instance.currentMobHud != null)
        {
            HideMobHUD();
        }

        PackedScene mhps   = ResourceLoader.Load(instance.MobHudResourcePath) as PackedScene;
        MobHUD      mobHud = mhps.Instance() as MobHUD;

        instance.currentMobHud = mobHud;
        instance.AddChild(mobHud);
        mobHud.SetHudData(mob);
        GUIQueue.Add(GUIS.MobHud);
    }