Ejemplo n.º 1
0
    public override void _Ready()
    {
        string res = AssetFinder.asignNonUsedResource(avaliableResourcesInMap);

        avaliableResourcesInMap.Add(res);
        GetNode <Sprite>("Sprite").Texture = (Texture)ResourceLoader.Load(AssetFinder.GetPathByResourceName(res));
        (GetNode <Area2D>("Area2D") as ResourceInfo).Kind = res;
    }