Ejemplo n.º 1
0
    public void Fetch()
    {
        ApiManager    apiManager    = GameObject.FindObjectOfType <ApiManager>();
        PresetManager presetManager = GameObject.FindObjectOfType <PresetManager>();

        int    presetId = (int)apiManager.User.activeSkinId;
        Preset preset   = presetManager.presetList[presetId];

        myWagon.ChangeColor(preset.color);
        myWagon.ChangeTexture(preset.texture);
    }