Skip to content
Permalink
Browse files

Added exclusive to LayerManager, updated Portal example to show how t…

…o use it.
  • Loading branch information...
valyard committed Jul 22, 2017
1 parent d5c576a commit 06a78ea8e4482ff75220f80a1ee6dfc24d803f61
Showing with 2,256 additions and 989 deletions.
  1. +912 −972 Source/Assets/TouchScript/Examples/Portal/Portal.unity
  2. +9 −0 Source/Assets/TouchScript/Examples/Portal/Prefabs.meta
  3. +273 −0 Source/Assets/TouchScript/Examples/Portal/Prefabs/Planet 1.prefab
  4. +9 −0 Source/Assets/TouchScript/Examples/Portal/Prefabs/Planet 1.prefab.meta
  5. +273 −0 Source/Assets/TouchScript/Examples/Portal/Prefabs/Planet 2.prefab
  6. +9 −0 Source/Assets/TouchScript/Examples/Portal/Prefabs/Planet 2.prefab.meta
  7. +273 −0 Source/Assets/TouchScript/Examples/Portal/Prefabs/Planet 3.prefab
  8. +9 −0 Source/Assets/TouchScript/Examples/Portal/Prefabs/Planet 3.prefab.meta
  9. +273 −0 Source/Assets/TouchScript/Examples/Portal/Prefabs/Planet 4.prefab
  10. +9 −0 Source/Assets/TouchScript/Examples/Portal/Prefabs/Planet 4.prefab.meta
  11. +40 −0 Source/Assets/TouchScript/Examples/Portal/Scripts/Spawner.cs
  12. +12 −0 Source/Assets/TouchScript/Examples/Portal/Scripts/Spawner.cs.meta
  13. +3 −1 Source/Assets/TouchScript/Scripts/Hit/HitData.cs
  14. +1 −1 Source/Assets/TouchScript/Scripts/Hit/RaycastHitUI.cs
  15. +11 −0 Source/Assets/TouchScript/Scripts/ILayerManager.cs
  16. +2 −0 Source/Assets/TouchScript/Scripts/ITouchManager.cs
  17. +83 −0 Source/Assets/TouchScript/Scripts/LayerManagerInstance.cs
  18. +39 −12 Source/Assets/TouchScript/Scripts/Layers/StandardLayer.cs
  19. +9 −2 Source/Assets/TouchScript/Scripts/Layers/TouchLayer.cs
  20. +1 −1 Source/Assets/TouchScript/Scripts/Layers/UI/TouchScriptInputModule.cs
  21. +6 −0 Source/Assets/TouchScript/Scripts/TouchManagerInstance.cs

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,273 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !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: 1723810235303300}
m_IsPrefabParent: 1
--- !u!1 &1723810235303300
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 5
m_Component:
- component: {fileID: 4587602474649486}
- component: {fileID: 33699283477361520}
- component: {fileID: 23136522374025466}
- component: {fileID: 114451894822869470}
- component: {fileID: 135508365643771480}
- component: {fileID: 114826848715069466}
- component: {fileID: 114536039364076494}
- component: {fileID: 114380460329550602}
- component: {fileID: 114610899262215960}
- component: {fileID: 54030889479251752}
m_Layer: 0
m_Name: Planet 1
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4587602474649486
Transform:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1723810235303300}
m_LocalRotation: {x: -0.00000008940697, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 5, y: 5, z: 5}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!23 &23136522374025466
MeshRenderer:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1723810235303300}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_MotionVectors: 1
m_LightProbeUsage: 0
m_ReflectionProbeUsage: 1
m_Materials:
- {fileID: 2100000, guid: 148079725ce574b75ae65e81f6be1567, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!33 &33699283477361520
MeshFilter:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1723810235303300}
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
--- !u!54 &54030889479251752
Rigidbody:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1723810235303300}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 0
m_IsKinematic: 1
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!114 &114380460329550602
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1723810235303300}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c6be551879cd14d739b0188844ef2c60, type: 3}
m_Name:
m_EditorClassIdentifier:
debugMode: 0
OnStateChange:
m_PersistentCalls:
m_Calls: []
m_TypeName: TouchScript.Gestures.Gesture+GestureEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
generalProps: 0
limitsProps: 0
advancedProps: 0
minPointers: 0
maxPointers: 0
combinePointers: 0
combinePointersInterval: 0.3
useSendMessage: 0
sendStateChangeMessages: 0
sendMessageTarget: {fileID: 0}
useUnityEvents: 0
sendStateChangeEvents: 0
requireGestureToFail: {fileID: 0}
friendlyGestures: []
OnPress:
m_PersistentCalls:
m_Calls: []
m_TypeName: TouchScript.Gestures.Gesture+GestureEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
ignoreChildren: 0
--- !u!114 &114451894822869470
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1723810235303300}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 11cabe64e6b9945c88b060d042861428, type: 3}
m_Name:
m_EditorClassIdentifier:
Speed: 100
RotationSpeed: 30
FallSpeed: 0.01
--- !u!114 &114536039364076494
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1723810235303300}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 978a486d8ecf8437cbb87e8534908895, type: 3}
m_Name:
m_EditorClassIdentifier:
enableSmoothing: 0
smoothingFactor: 0.0001
positionThreshold: 0.0001
rotationThreshold: 0.01
scaleThreshold: 0.0001
allowChangingFromOutside: 0
--- !u!114 &114610899262215960
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1723810235303300}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 141e75b9b7edb42df80a22a14f03ae4b, type: 3}
m_Name:
m_EditorClassIdentifier:
debugMode: 0
OnStateChange:
m_PersistentCalls:
m_Calls: []
m_TypeName: TouchScript.Gestures.Gesture+GestureEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
generalProps: 0
limitsProps: 0
advancedProps: 0
minPointers: 0
maxPointers: 0
combinePointers: 0
combinePointersInterval: 0.3
useSendMessage: 0
sendStateChangeMessages: 0
sendMessageTarget: {fileID: 0}
useUnityEvents: 0
sendStateChangeEvents: 0
requireGestureToFail: {fileID: 0}
friendlyGestures: []
OnRelease:
m_PersistentCalls:
m_Calls: []
m_TypeName: TouchScript.Gestures.Gesture+GestureEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
ignoreChildren: 0
--- !u!114 &114826848715069466
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1723810235303300}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 11ea9930ecb674732bee27116520fad8, type: 3}
m_Name:
m_EditorClassIdentifier:
debugMode: 0
OnStateChange:
m_PersistentCalls:
m_Calls: []
m_TypeName: TouchScript.Gestures.Gesture+GestureEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
generalProps: 0
limitsProps: 0
advancedProps: 0
minPointers: 0
maxPointers: 0
combinePointers: 0
combinePointersInterval: 0.3
useSendMessage: 0
sendStateChangeMessages: 0
sendMessageTarget: {fileID: 0}
useUnityEvents: 0
sendStateChangeEvents: 0
requireGestureToFail: {fileID: 0}
friendlyGestures: []
OnTransformStart:
m_PersistentCalls:
m_Calls: []
m_TypeName: TouchScript.Gestures.Gesture+GestureEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
OnTransform:
m_PersistentCalls:
m_Calls: []
m_TypeName: TouchScript.Gestures.Gesture+GestureEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
OnTransformComplete:
m_PersistentCalls:
m_Calls: []
m_TypeName: TouchScript.Gestures.Gesture+GestureEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
type: 1
screenTransformThreshold: 0.1
minScreenPointsDistance: 0.5
projectionProps: 0
projection: 1
projectionPlaneNormal: {x: 0, y: 0, z: 1}
--- !u!135 &135508365643771480
SphereCollider:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1723810235303300}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: 0.5
m_Center: {x: 0, y: -0.00000071525574, z: -0.00000023841858}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 06a78ea

Please sign in to comment.
You can’t perform that action at this time.