Ejemplo n.º 1
0
    void OnCreateSellOrderClic()
    {
        PrefabManager pm    = FindObjectOfType <PrefabManager>();
        WindowSystem  ws    = FindObjectOfType <WindowSystem>();
        MarketOrder   order = Instantiate(pm.prefabMarketOrderView);
        Window        w     = ws.NewWindow("marketOrder", order.gameObject);

        order.SetResource(_currentResourceID);
        w.Title = "Selling...";
        w.Show();
    }