Exemplo n.º 1
0
        public static void StoreAll()
        {
            DefaultOptions.Clear();
            for (uint i = 0; i < PrefabCollection <VehicleInfo> .PrefabCount(); i++)
            {
                DefaultOptions.Store(PrefabCollection <VehicleInfo> .GetPrefab(i));
            }

            DebugUtils.Log("Default values stored");
        }
            private IEnumerator Store()
            {
                while (PrefabCollection <VehicleInfo> .GetPrefab(0) == null)
                {
                    yield return(null);
                }

                DefaultOptions.Clear();
                for (uint i = 0; i < PrefabCollection <VehicleInfo> .PrefabCount(); i++)
                {
                    DefaultOptions.Store(PrefabCollection <VehicleInfo> .GetPrefab(i));
                }

                DebugUtils.Log("Default values stored");
                Destroy(gameObject);
            }