Commit f28a4458 authored by Liang JingQiang's avatar Liang JingQiang

增加音效,泡泡材质

parent f78a69cd
fileFormatVersion: 2
guid: 2e0b99d65d34aa04d939612a84171b32
guid: 456bfbe80767b734fa14982d8955ec16
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 3909fcbb1784d5344942dae27d795407
folderAsset: yes
timeCreated: 1503542481
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 0d1adb20421ed664b800c8cf3d103e70
timeCreated: 1461333198
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: cec0b2c714b441240b98d7c904818225
timeCreated: 1460044093
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 0a2702066098739458b46ca8a46ab838
timeCreated: 1460033345
licenseType: Store
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 1
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 0
cubemapConvolution: 0
cubemapConvolutionSteps: 7
cubemapConvolutionExponent: 1.5
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 2048
textureSettings:
filterMode: -1
aniso: -1
mipBias: -1
wrapMode: 1
nPOTScale: 1
lightmap: 0
rGBM: 0
compressionQuality: 50
allowsAlphaSplitting: 0
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 100
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: -1
buildTargetSettings: []
spriteSheet:
sprites: []
outline: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 57f73b2c859446646ab31ce06c104c83
timeCreated: 1461774498
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: e11a2e82d23744f4bbaa2bf0d00a7dac
timeCreated: 1461767132
licenseType: Store
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 1
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 0
cubemapConvolution: 0
cubemapConvolutionSteps: 7
cubemapConvolutionExponent: 1.5
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 2048
textureSettings:
filterMode: -1
aniso: -1
mipBias: -1
wrapMode: 1
nPOTScale: 1
lightmap: 0
rGBM: 0
compressionQuality: 50
allowsAlphaSplitting: 0
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 100
alphaIsTransparency: 1
textureType: -1
buildTargetSettings: []
spriteSheet:
sprites: []
outline: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 5dfef0b71adcd15489648c649dd26e23
timeCreated: 1461334026
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
"Jiggly Bubble Free" is owned by Moonflower Carnivore (http://u3d.as/cxf) and published on Unity Asset Store.
For more information, please refer to the online asset description page: http://u3d.as/sew
This asset has a paid version with more particle effects for different situation: http://u3d.as/sae
「弹性泡泡免费版 / Jiggly Bubble Free」由Moonflower Carnivore (http://u3d.as/cxf) 持有并于Unity官方资源商店公开。
请参阅资源说明页获取更多信息:http://u3d.as/sew
本免费资源存在付费版本提供更多适合不同场合的气泡效果:http://u3d.as/sae
\ No newline at end of file
fileFormatVersion: 2
guid: 6c9e53664d3668949904e4836239496a
timeCreated: 1461333826
licenseType: Store
TextScriptImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 2e0b99d65d34aa04d939612a84171b32
DefaultImporter:
userData:
fileFormatVersion: 2
guid: 34c05c6893676f64db1d19deb2efdbcf
folderAsset: yes
timeCreated: 1503536712
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 2d4652ceb079f0a4d9a1ef4e9711cd41
timeCreated: 1486748224
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 78c2404ebe2c815479d7baf90829a45c
folderAsset: yes
timeCreated: 1486748263
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

using UnityEngine;
using System.Collections;
using UnityEditor;
namespace Turzo
{
[CustomEditor(typeof(Capture))]
public class ScreenShotEditor : Editor {
public Texture banner = Resources.Load("banner") as Texture;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
// Use this for initialization
public override void OnInspectorGUI () {
GUILayout.Box (banner, GUILayout.ExpandWidth(true));
DrawDefaultInspector();
}
}
}
fileFormatVersion: 2
guid: 6ac8b83eb8ecf364ab240dd129994752
timeCreated: 1486751233
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences:
- banner: {fileID: 2800000, guid: b234711e9434b0e42ba657eeddd79699, type: 3}
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 343081f35b73d544a8a00df211fcb680
timeCreated: 1486759669
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: c469f4736ae1c3a408083534c409830b
folderAsset: yes
timeCreated: 1486748189
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 4591d2269f970474e903d5588ab3fa07
timeCreated: 1486749837
licenseType: Store
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 1
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 0
cubemapConvolution: 0
cubemapConvolutionSteps: 7
cubemapConvolutionExponent: 1.5
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 2048
textureSettings:
filterMode: -1
aniso: 16
mipBias: -1
wrapMode: 1
nPOTScale: 0
lightmap: 0
rGBM: 0
compressionQuality: 50
allowsAlphaSplitting: 0
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 100
alphaIsTransparency: 1
textureType: 8
buildTargetSettings: []
spriteSheet:
sprites: []
outline: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: ad7e0c4c65be7de48a12de054409b5c1
timeCreated: 1486749265
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: b234711e9434b0e42ba657eeddd79699
timeCreated: 1486750921
licenseType: Store
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 1
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 0
cubemapConvolution: 0
cubemapConvolutionSteps: 7
cubemapConvolutionExponent: 1.5
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 2048
textureSettings:
filterMode: -1
aniso: 16
mipBias: -1
wrapMode: 1
nPOTScale: 0
lightmap: 0
rGBM: 0
compressionQuality: 50
allowsAlphaSplitting: 0
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 100
alphaIsTransparency: 1
textureType: 8
buildTargetSettings: []
spriteSheet:
sprites: []
outline: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 4c60ead5389ce5f49aa6b48f792e6771
timeCreated: 1486749213
licenseType: Store
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 1
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 0
cubemapConvolution: 0
cubemapConvolutionSteps: 7
cubemapConvolutionExponent: 1.5
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 2048
textureSettings:
filterMode: -1
aniso: -1
mipBias: -1
wrapMode: -1
nPOTScale: 1
lightmap: 0
rGBM: 0
compressionQuality: 50
allowsAlphaSplitting: 0
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 100
alphaIsTransparency: 0
textureType: -1
buildTargetSettings: []
spriteSheet:
sprites: []
outline: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 08a59854e6f09a14ea15b74421246082
timeCreated: 1486749065
licenseType: Store
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 1
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 0
cubemapConvolution: 0
cubemapConvolutionSteps: 7
cubemapConvolutionExponent: 1.5
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 2048
textureSettings:
filterMode: -1
aniso: 16
mipBias: -1
wrapMode: 1
nPOTScale: 0
lightmap: 0
rGBM: 0
compressionQuality: 50
allowsAlphaSplitting: 0
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 100
alphaIsTransparency: 1
textureType: 8
buildTargetSettings: []
spriteSheet:
sprites: []
outline: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 98ed306045c40c74698f0243d0ccef25
folderAsset: yes
timeCreated: 1486748183
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 4c8c9f63dea87e149b086a4fffba09b8
timeCreated: 1486757683
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 9e3b89c05b4b124469efe0c5865b44ea
timeCreated: 1486755939
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: e5f4a12a44f8f6d42b55cb167f34f081
folderAsset: yes
timeCreated: 1486748170
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
using UnityEngine;
using System.Collections;
using System.IO;
namespace Turzo
{
public class Capture : MonoBehaviour
{
[Header("➨ Select OS & path")]
[Space(10)]
[Tooltip("Status bar to show after capture & saving image")]
public GameObject SavedTag;
public enum SelectOS { Android, iOS};
public SelectOS OS_Option;
[Tooltip("Location to save the Screenshot into device")]
public string LocationToSave = "/mnt/sdcard/CaputreSave/";
[Space(10)]
// Check the Shot Taken/Not.
private bool Shot_Taken = false;
// Name of the File.
private string Screen_Shot_File_Name;
// Screenshot name after capturing
private string fileName;
void Start()
{
//------------------
if (OS_Option == SelectOS.Android) {
LocationToSave = "/mnt/sdcard/CaputreSave/";
}
else if (OS_Option == SelectOS.iOS) {
LocationToSave = "/Documents/CaputreSave/";
}
//---------------------
if (Directory.Exists (LocationToSave) == false) {
Directory.CreateDirectory(LocationToSave);
}
if (PlayerPrefs.GetInt ("ImageID") == 0) {
PlayerPrefs.SetInt ("ImageID",0);
}
}
void Update(){
if(Shot_Taken == true)
{
string Origin_Path = System.IO.Path.Combine(Application.persistentDataPath, Screen_Shot_File_Name);
// This is the path of my folder.
string Path = LocationToSave + Screen_Shot_File_Name;
//string Path = "/mnt/sdcard/DCIM/Camera/" + Screen_Shot_File_Name;
if(System.IO.File.Exists(Origin_Path))
{
System.IO.File.Move(Origin_Path, Path);
//----------------
GameObject.Find("Canvas").GetComponent<Canvas>().enabled = true; // Show UI after we're done
StartCoroutine("showMSG"); // Show save status bar after capturing
Application.OpenURL(Path); // Instantly open the captured image
//----------------
Shot_Taken = false;
}
}
}
public void captureScreenshot(){
PlayerPrefs.SetInt ("ImageID",PlayerPrefs.GetInt ("ImageID")+1); // Increasing this value to seperate to avaoid replacing. Reinstalling app will make this value to 0 again.
StartCoroutine(CaptureScreen());
}
public IEnumerator CaptureScreen()
{
GameObject.Find("Canvas").GetComponent<Canvas>().enabled = false;
// Wait for screen rendering to complete
yield return new WaitForEndOfFrame();
//Screen_Shot_File_Name = "Screenshot__" + PlayerPrefs.GetInt ("ImageID")+ System.DateTime.Now.ToString("__yyyy-MM-dd") + ".png";
Screen_Shot_File_Name = "Screenshot__" + PlayerPrefs.GetInt ("ImageID")+ ".png";
Application.CaptureScreenshot(Screen_Shot_File_Name);
//Application.OpenURL(Screen_Shot_File_Name);
Shot_Taken = true;
}
IEnumerator showMSG(){
SavedTag.SetActive (true);
yield return new WaitForSeconds (2.0f);
SavedTag.SetActive (false); // Hide the save status bar after 2 seconds
}
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: d19803dffd51c624ab36c78364c15339
timeCreated: 1486748554
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 386a1fabc73a4d745a12d4bdac5245b9
folderAsset: yes
timeCreated: 1503537878
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 0586fca97927a5d4ca1a68f2850e9820
timeCreated: 1503537879
licenseType: Pro
AudioImporter:
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment