void DeserializeComponents() { if ((isDeserialized && ApplicationUtility.IsPlaying) || string.IsNullOrEmpty(data)) { return; } RemoveAllComponents(false); allComponents = ComponentSerializer.DeserializeComponents(data, references); RegisterAllComponents(); isDeserialized = ApplicationUtility.IsPlaying; }
void IPoolInitializable.OnPostPoolInitialize() { RegisterAllComponents(); ComponentSerializer.InjectReferences(allComponents, references); }
void SerializeComponents() { ComponentSerializer.SerializeComponents(allComponents, out data, out references); }
void Awake() { ComponentSerializer.InjectReferences(allComponents, references); }