Пример #1
0
    private Rune CreateRune(string id)
    {
        Texture texture = RuneStore.Instance.GetTexture(id);
        Rune    rune    = (Rune)runeScene.Instance();

        rune.ID = id;
        TextureRect runeTextureRect = (TextureRect)rune.GetNode("RuneTexture");

        runeTextureRect.Texture = texture;
        return(rune);
    }