Esempio n. 1
0
        void DeserializeComponents()
        {
            if ((isDeserialized && ApplicationUtility.IsPlaying) || string.IsNullOrEmpty(data))
            {
                return;
            }

            RemoveAllComponents(false);
            allComponents = ComponentSerializer.DeserializeComponents(data, references);
            RegisterAllComponents();
            isDeserialized = ApplicationUtility.IsPlaying;
        }
Esempio n. 2
0
 void IPoolInitializable.OnPostPoolInitialize()
 {
     RegisterAllComponents();
     ComponentSerializer.InjectReferences(allComponents, references);
 }
Esempio n. 3
0
 void SerializeComponents()
 {
     ComponentSerializer.SerializeComponents(allComponents, out data, out references);
 }
Esempio n. 4
0
 void Awake()
 {
     ComponentSerializer.InjectReferences(allComponents, references);
 }