Пример #1
0
    protected void Start()
    {
        values           = GenericPreset.Create(target, GenericPresetsUtil.GetPropertyNames(propertiesCSV));
        presetProperties = new PresetProperties {
            p = values.properties
        };

        firebase = FirebaseManager.Instance;

        if (firebase == null)
        {
            firebase = gameObject.AddComponent <FirebaseManager> ();
            FirebaseManager.IsAdmin = true;
            firebase.id             = "default";
        }

        if (firebase != null)
        {
            firebase.ExecuteOnInitialisation(OnFirebaseReady);
        }
    }