| @@ -0,0 +1,119 @@ | ||
| %YAML 1.1 | ||
| %TAG !u! tag:unity3d.com,2011: | ||
| --- !u!1 &138488 | ||
| GameObject: | ||
| m_ObjectHideFlags: 0 | ||
| m_PrefabParentObject: {fileID: 0} | ||
| m_PrefabInternal: {fileID: 100100000} | ||
| serializedVersion: 4 | ||
| m_Component: | ||
| - 224: {fileID: 22481896} | ||
| - 33: {fileID: 3382872} | ||
| - 23: {fileID: 2301730} | ||
| - 222: {fileID: 22270628} | ||
| - 61: {fileID: 6186942} | ||
| - 114: {fileID: 11431782} | ||
| m_Layer: 0 | ||
| m_Name: Cube | ||
| m_TagString: Untagged | ||
| m_Icon: {fileID: 0} | ||
| m_NavMeshLayer: 0 | ||
| m_StaticEditorFlags: 0 | ||
| m_IsActive: 1 | ||
| --- !u!23 &2301730 | ||
| MeshRenderer: | ||
| m_ObjectHideFlags: 1 | ||
| m_PrefabParentObject: {fileID: 0} | ||
| m_PrefabInternal: {fileID: 100100000} | ||
| m_GameObject: {fileID: 138488} | ||
| m_Enabled: 1 | ||
| m_CastShadows: 1 | ||
| m_ReceiveShadows: 1 | ||
| m_Materials: | ||
| - {fileID: 2100000, guid: 6ffaa287695b3bf4fb3a0e83897f84aa, type: 2} | ||
| m_SubsetIndices: | ||
| m_StaticBatchRoot: {fileID: 0} | ||
| m_UseLightProbes: 1 | ||
| m_ReflectionProbeUsage: 1 | ||
| m_ProbeAnchor: {fileID: 0} | ||
| m_ScaleInLightmap: 1 | ||
| m_PreserveUVs: 1 | ||
| m_IgnoreNormalsForChartDetection: 0 | ||
| m_ImportantGI: 0 | ||
| m_MinimumChartSize: 4 | ||
| m_AutoUVMaxDistance: 0.5 | ||
| m_AutoUVMaxAngle: 89 | ||
| m_LightmapParameters: {fileID: 0} | ||
| m_SortingLayerID: 0 | ||
| m_SortingOrder: 0 | ||
| --- !u!33 &3382872 | ||
| MeshFilter: | ||
| m_ObjectHideFlags: 1 | ||
| m_PrefabParentObject: {fileID: 0} | ||
| m_PrefabInternal: {fileID: 100100000} | ||
| m_GameObject: {fileID: 138488} | ||
| m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} | ||
| --- !u!61 &6186942 | ||
| BoxCollider2D: | ||
| m_ObjectHideFlags: 1 | ||
| m_PrefabParentObject: {fileID: 0} | ||
| m_PrefabInternal: {fileID: 100100000} | ||
| m_GameObject: {fileID: 138488} | ||
| m_Enabled: 1 | ||
| m_Density: 1 | ||
| m_Material: {fileID: 0} | ||
| m_IsTrigger: 0 | ||
| m_UsedByEffector: 1 | ||
| m_Offset: {x: 0, y: 0} | ||
| serializedVersion: 2 | ||
| m_Size: {x: 1, y: 1} | ||
| --- !u!114 &11431782 | ||
| MonoBehaviour: | ||
| m_ObjectHideFlags: 1 | ||
| m_PrefabParentObject: {fileID: 0} | ||
| m_PrefabInternal: {fileID: 100100000} | ||
| m_GameObject: {fileID: 138488} | ||
| m_Enabled: 1 | ||
| m_EditorHideFlags: 0 | ||
| m_Script: {fileID: 11500000, guid: 01624bc147ec9a9499c9b7f5d189754a, type: 3} | ||
| m_Name: | ||
| m_EditorClassIdentifier: | ||
| brickParticles: | ||
| - {fileID: 100000, guid: d321a98408cfc4e0299808f65181aab4, type: 2} | ||
| - {fileID: 100000, guid: 4f2b448ece6bb4940be1ce4a87b8e110, type: 2} | ||
| - {fileID: 100002, guid: bb3bef2df5f35455f9e3890d21dbc268, type: 2} | ||
| - {fileID: 100000, guid: 956db5187dbbe46999d70f0824dc320f, type: 2} | ||
| --- !u!222 &22270628 | ||
| CanvasRenderer: | ||
| m_ObjectHideFlags: 1 | ||
| m_PrefabParentObject: {fileID: 0} | ||
| m_PrefabInternal: {fileID: 100100000} | ||
| m_GameObject: {fileID: 138488} | ||
| --- !u!224 &22481896 | ||
| RectTransform: | ||
| m_ObjectHideFlags: 1 | ||
| m_PrefabParentObject: {fileID: 0} | ||
| m_PrefabInternal: {fileID: 100100000} | ||
| m_GameObject: {fileID: 138488} | ||
| m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
| m_LocalPosition: {x: 0, y: 0, z: 90} | ||
| m_LocalScale: {x: 1, y: 0.5, z: 1} | ||
| m_Children: [] | ||
| m_Father: {fileID: 0} | ||
| m_RootOrder: 0 | ||
| m_AnchorMin: {x: 0.5, y: 0.5} | ||
| m_AnchorMax: {x: 0.5, y: 0.5} | ||
| m_AnchoredPosition: {x: 0, y: 0} | ||
| m_SizeDelta: {x: 80, y: 30} | ||
| m_Pivot: {x: 0.5, y: 0.5} | ||
| --- !u!1001 &100100000 | ||
| Prefab: | ||
| m_ObjectHideFlags: 1 | ||
| serializedVersion: 2 | ||
| m_Modification: | ||
| m_TransformParent: {fileID: 0} | ||
| m_Modifications: [] | ||
| m_RemovedComponents: [] | ||
| m_ParentPrefab: {fileID: 0} | ||
| m_RootGameObject: {fileID: 138488} | ||
| m_IsPrefabParent: 1 |
| @@ -0,0 +1,115 @@ | ||
| %YAML 1.1 | ||
| %TAG !u! tag:unity3d.com,2011: | ||
| --- !u!1 &151832 | ||
| GameObject: | ||
| m_ObjectHideFlags: 0 | ||
| m_PrefabParentObject: {fileID: 0} | ||
| m_PrefabInternal: {fileID: 100100000} | ||
| serializedVersion: 4 | ||
| m_Component: | ||
| - 4: {fileID: 471580} | ||
| - 82: {fileID: 8289466} | ||
| m_Layer: 0 | ||
| m_Name: SFXSource | ||
| m_TagString: Untagged | ||
| m_Icon: {fileID: 0} | ||
| m_NavMeshLayer: 0 | ||
| m_StaticEditorFlags: 0 | ||
| m_IsActive: 1 | ||
| --- !u!4 &471580 | ||
| Transform: | ||
| m_ObjectHideFlags: 1 | ||
| m_PrefabParentObject: {fileID: 0} | ||
| m_PrefabInternal: {fileID: 100100000} | ||
| m_GameObject: {fileID: 151832} | ||
| m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
| m_LocalPosition: {x: 0, y: 0, z: 0} | ||
| m_LocalScale: {x: 1, y: 1, z: 1} | ||
| m_Children: [] | ||
| m_Father: {fileID: 0} | ||
| m_RootOrder: 0 | ||
| --- !u!82 &8289466 | ||
| AudioSource: | ||
| m_ObjectHideFlags: 1 | ||
| m_PrefabParentObject: {fileID: 0} | ||
| m_PrefabInternal: {fileID: 100100000} | ||
| m_GameObject: {fileID: 151832} | ||
| m_Enabled: 1 | ||
| serializedVersion: 4 | ||
| OutputAudioMixerGroup: {fileID: 0} | ||
| m_audioClip: {fileID: 0} | ||
| m_PlayOnAwake: 0 | ||
| m_Volume: 1 | ||
| m_Pitch: 1 | ||
| Loop: 0 | ||
| Mute: 0 | ||
| Spatialize: 0 | ||
| Priority: 128 | ||
| DopplerLevel: 1 | ||
| MinDistance: 1 | ||
| MaxDistance: 500 | ||
| Pan2D: 0 | ||
| rolloffMode: 0 | ||
| BypassEffects: 0 | ||
| BypassListenerEffects: 0 | ||
| BypassReverbZones: 0 | ||
| rolloffCustomCurve: | ||
| serializedVersion: 2 | ||
| m_Curve: | ||
| - time: 0 | ||
| value: 1 | ||
| inSlope: 0 | ||
| outSlope: 0 | ||
| tangentMode: 0 | ||
| - time: 1 | ||
| value: 0 | ||
| inSlope: 0 | ||
| outSlope: 0 | ||
| tangentMode: 0 | ||
| m_PreInfinity: 2 | ||
| m_PostInfinity: 2 | ||
| m_RotationOrder: 4 | ||
| panLevelCustomCurve: | ||
| serializedVersion: 2 | ||
| m_Curve: | ||
| - time: 0 | ||
| value: 0 | ||
| inSlope: 0 | ||
| outSlope: 0 | ||
| tangentMode: 0 | ||
| m_PreInfinity: 2 | ||
| m_PostInfinity: 2 | ||
| m_RotationOrder: 0 | ||
| spreadCustomCurve: | ||
| serializedVersion: 2 | ||
| m_Curve: | ||
| - time: 0 | ||
| value: 0 | ||
| inSlope: 0 | ||
| outSlope: 0 | ||
| tangentMode: 0 | ||
| m_PreInfinity: 2 | ||
| m_PostInfinity: 2 | ||
| m_RotationOrder: 4 | ||
| reverbZoneMixCustomCurve: | ||
| serializedVersion: 2 | ||
| m_Curve: | ||
| - time: 0 | ||
| value: 1 | ||
| inSlope: 0 | ||
| outSlope: 0 | ||
| tangentMode: 0 | ||
| m_PreInfinity: 2 | ||
| m_PostInfinity: 2 | ||
| m_RotationOrder: 0 | ||
| --- !u!1001 &100100000 | ||
| Prefab: | ||
| m_ObjectHideFlags: 1 | ||
| serializedVersion: 2 | ||
| m_Modification: | ||
| m_TransformParent: {fileID: 0} | ||
| m_Modifications: [] | ||
| m_RemovedComponents: [] | ||
| m_ParentPrefab: {fileID: 0} | ||
| m_RootGameObject: {fileID: 151832} | ||
| m_IsPrefabParent: 1 |
| @@ -0,0 +1,17 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class BGMusicHandler : MonoBehaviour { | ||
| public AudioClip[] music; | ||
| // Use this for initialization | ||
| void Start () { | ||
| int selectedClip; | ||
| selectedClip = UnityEngine.Random.Range(0, music.Length); | ||
| this.GetComponent<AudioSource>().PlayOneShot(music[selectedClip]); | ||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () { | ||
|
|
||
| } | ||
| } |
| @@ -0,0 +1,21 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class BallHit : MonoBehaviour { | ||
| AudioSource source; | ||
| public AudioClip ballHit; | ||
| // Use this for initialization | ||
| void Start () { | ||
| source = GameObject.Find("SFXSource").GetComponent<AudioSource>(); | ||
| } | ||
|
|
||
| void OnCollisionEnter2D(Collision2D other) | ||
| { | ||
| source.PlayOneShot(ballHit); | ||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () { | ||
|
|
||
| } | ||
| } |
| @@ -25,6 +25,7 @@ public class BallRespawn : MonoBehaviour { | ||
| GameObject.Instantiate(ballPrefab, pos, Quaternion.identity); | ||
| respawning = false; | ||
| } | ||
|
|
||
| } | ||
|
|
||
| void OnTriggerEnter2D(Collider2D other) | ||
| @@ -0,0 +1,23 @@ | ||
| using UnityEngine; | ||
| using System.Collections; | ||
|
|
||
| public class BrickCollider : MonoBehaviour { | ||
| public GameObject[] brickParticles; | ||
| // Use this for initialization | ||
| void Start () { | ||
|
|
||
| } | ||
|
|
||
| void OnCollisionEnter2D(Collision2D other) | ||
| { | ||
| int particle; | ||
| particle = UnityEngine.Random.Range(0, brickParticles.Length); | ||
| Instantiate(brickParticles[particle], transform.position, Quaternion.identity); | ||
| Destroy(gameObject); | ||
| } | ||
|
|
||
| // Update is called once per frame | ||
| void Update () { | ||
|
|
||
| } | ||
| } |
| @@ -20,6 +20,7 @@ void Start() | ||
| void JoinServer(HostData hostData) | ||
| { | ||
| Network.Connect(hostData); | ||
| Debug.Log("Connected!"); | ||
| } | ||
|
|
||
| public void ButtonClicked(string str) | ||
| @@ -0,0 +1,42 @@ | ||
| %YAML 1.1 | ||
| %TAG !u! tag:unity3d.com,2011: | ||
| --- !u!21 &2100000 | ||
| Material: | ||
| serializedVersion: 6 | ||
| m_ObjectHideFlags: 0 | ||
| m_PrefabParentObject: {fileID: 0} | ||
| m_PrefabInternal: {fileID: 0} | ||
| m_Name: Flame01 | ||
| m_Shader: {fileID: 202, guid: 0000000000000000f000000000000000, type: 0} | ||
| m_ShaderKeywords: | ||
| m_LightmapFlags: 5 | ||
| m_CustomRenderQueue: -1 | ||
| stringTagMap: {} | ||
| m_SavedProperties: | ||
| serializedVersion: 2 | ||
| m_TexEnvs: | ||
| data: | ||
| first: | ||
| name: _MainTex | ||
| second: | ||
| m_Texture: {fileID: 2800000, guid: b260cbc8d9bc048bd8834c7a1b5aed36, type: 3} | ||
| m_Scale: {x: 1, y: 1} | ||
| m_Offset: {x: 0, y: 0} | ||
| m_Floats: | ||
| data: | ||
| first: | ||
| name: _InvFade | ||
| second: 1 | ||
| m_Colors: | ||
| data: | ||
| first: | ||
| name: _Color | ||
| second: {r: 1, g: 1, b: 1, a: 1} | ||
| data: | ||
| first: | ||
| name: _TintColor | ||
| second: {r: 0.5, g: 0.5, b: 0.5, a: 0.5} | ||
| data: | ||
| first: | ||
| name: _EmisColor | ||
| second: {r: 0.2, g: 0.2, b: 0.2, a: 0} |
| @@ -0,0 +1,33 @@ | ||
| %YAML 1.1 | ||
| %TAG !u! tag:unity3d.com,2011: | ||
| --- !u!21 &2100000 | ||
| Material: | ||
| serializedVersion: 6 | ||
| m_ObjectHideFlags: 0 | ||
| m_PrefabParentObject: {fileID: 0} | ||
| m_PrefabInternal: {fileID: 0} | ||
| m_Name: Flame02 | ||
| m_Shader: {fileID: 200, guid: 0000000000000000f000000000000000, type: 0} | ||
| m_ShaderKeywords: | ||
| m_LightmapFlags: 5 | ||
| m_CustomRenderQueue: -1 | ||
| stringTagMap: {} | ||
| m_SavedProperties: | ||
| serializedVersion: 2 | ||
| m_TexEnvs: | ||
| data: | ||
| first: | ||
| name: _MainTex | ||
| second: | ||
| m_Texture: {fileID: 2800000, guid: 8e3ff3e27ca4bc54dda56e89e0550dfa, type: 3} | ||
| m_Scale: {x: 1, y: 1} | ||
| m_Offset: {x: 0, y: 0} | ||
| m_Floats: {} | ||
| m_Colors: | ||
| data: | ||
| first: | ||
| name: _TintColor | ||
| second: {r: 0.5, g: 0.5, b: 0.5, a: 0.5} | ||
| --- !u!1002 &2100001 | ||
| EditorExtensionImpl: | ||
| serializedVersion: 6 |
| @@ -0,0 +1,33 @@ | ||
| %YAML 1.1 | ||
| %TAG !u! tag:unity3d.com,2011: | ||
| --- !u!21 &2100000 | ||
| Material: | ||
| serializedVersion: 6 | ||
| m_ObjectHideFlags: 0 | ||
| m_PrefabParentObject: {fileID: 0} | ||
| m_PrefabInternal: {fileID: 0} | ||
| m_Name: Shockwave | ||
| m_Shader: {fileID: 200, guid: 0000000000000000f000000000000000, type: 0} | ||
| m_ShaderKeywords: | ||
| m_LightmapFlags: 5 | ||
| m_CustomRenderQueue: -1 | ||
| stringTagMap: {} | ||
| m_SavedProperties: | ||
| serializedVersion: 2 | ||
| m_TexEnvs: | ||
| data: | ||
| first: | ||
| name: _MainTex | ||
| second: | ||
| m_Texture: {fileID: 2800000, guid: e12f8e30c9a7e49a589559cf53454a29, type: 3} | ||
| m_Scale: {x: 1, y: 1} | ||
| m_Offset: {x: 0, y: 0} | ||
| m_Floats: {} | ||
| m_Colors: | ||
| data: | ||
| first: | ||
| name: _TintColor | ||
| second: {r: 0.5, g: 0.5, b: 0.5, a: 0.5} | ||
| --- !u!1002 &2100001 | ||
| EditorExtensionImpl: | ||
| serializedVersion: 6 |