Exemplo n.º 1
0
        public Spawnable(Enumerations.SpawnableType type, GameObject prefab, string bundleName, string menuText = null, bool generatePreview = true)
        {
            Type       = type;
            Prefab     = prefab;
            BundleName = bundleName;
            MenuText   = menuText;

            PrefabLayerInfo = prefab.transform.GetObjectLayers();

            InitializeSettings();

            if (generatePreview)
            {
                LoadPreviewImage();
            }
        }