コード例 #1
0
        void DeserializeComponents()
        {
            if ((isDeserialized && ApplicationUtility.IsPlaying) || string.IsNullOrEmpty(data))
            {
                return;
            }

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