Skip to content

Commit

Permalink
Cant place gizmos on level opstacles
Browse files Browse the repository at this point in the history
  • Loading branch information
zane-c committed Nov 20, 2017
1 parent 19e879f commit 8c2a2ec
Show file tree
Hide file tree
Showing 12 changed files with 243 additions and 70 deletions.
21 changes: 21 additions & 0 deletions Assets/Prefabs/Gizmos/Conveyor.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ GameObject:
- component: {fileID: 61723897635277602}
- component: {fileID: 61489742916714720}
- component: {fileID: 114823018389043974}
- component: {fileID: 50676068189911060}
m_Layer: 10
m_Name: Conveyor
m_TagString: Draggable
Expand Down Expand Up @@ -379,6 +380,26 @@ Transform:
m_Father: {fileID: 4025969293912590}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!50 &50676068189911060
Rigidbody2D:
serializedVersion: 4
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1797930526813820}
m_BodyType: 1
m_Simulated: 1
m_UseFullKinematicContacts: 0
m_UseAutoMass: 0
m_Mass: 1
m_LinearDrag: 0
m_AngularDrag: 0.05
m_GravityScale: 1
m_Material: {fileID: 0}
m_Interpolate: 0
m_SleepingMode: 1
m_CollisionDetection: 0
m_Constraints: 7
--- !u!61 &61138777438691322
BoxCollider2D:
m_ObjectHideFlags: 1
Expand Down
31 changes: 26 additions & 5 deletions Assets/Prefabs/Gizmos/WallGizmo.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ GameObject:
- component: {fileID: 212912624889052602}
- component: {fileID: 61972768775332280}
- component: {fileID: 114295991851096870}
m_Layer: 0
- component: {fileID: 50922788911505236}
m_Layer: 10
m_Name: WallGizmo
m_TagString: Draggable
m_Icon: {fileID: 0}
Expand All @@ -39,7 +40,7 @@ GameObject:
- component: {fileID: 4856576635549392}
- component: {fileID: 212862730024875906}
- component: {fileID: 61213199854562470}
m_Layer: 0
m_Layer: 10
m_Name: Rotator
m_TagString: Rotatable
m_Icon: {fileID: 0}
Expand All @@ -55,7 +56,7 @@ GameObject:
m_Component:
- component: {fileID: 4647619834981092}
- component: {fileID: 212576447400959650}
m_Layer: 0
m_Layer: 10
m_Name: tag
m_TagString: Wall
m_Icon: {fileID: 0}
Expand All @@ -68,8 +69,8 @@ Transform:
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1198426010403458}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -2.0190191, y: -0.09574032, z: 0}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0.26349807, y: 1.7058024, z: 0}
m_LocalScale: {x: 0.5, y: 0.5, z: 1}
m_Children:
- {fileID: 4647619834981092}
Expand Down Expand Up @@ -103,6 +104,26 @@ Transform:
m_Father: {fileID: 4301106067271480}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 90}
--- !u!50 &50922788911505236
Rigidbody2D:
serializedVersion: 4
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1198426010403458}
m_BodyType: 1
m_Simulated: 1
m_UseFullKinematicContacts: 0
m_UseAutoMass: 0
m_Mass: 1
m_LinearDrag: 0
m_AngularDrag: 0.05
m_GravityScale: 1
m_Material: {fileID: 0}
m_Interpolate: 0
m_SleepingMode: 1
m_CollisionDetection: 0
m_Constraints: 7
--- !u!61 &61213199854562470
BoxCollider2D:
m_ObjectHideFlags: 1
Expand Down
40 changes: 30 additions & 10 deletions Assets/Prefabs/LevelOpstacles/Sources/BlueSource.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ GameObject:
- component: {fileID: 114680654756982996}
- component: {fileID: 61682612141838366}
- component: {fileID: 58823366268245504}
m_Layer: 0
m_Layer: 11
m_Name: Blue
m_TagString: Ball
m_Icon: {fileID: 0}
Expand All @@ -44,7 +44,7 @@ GameObject:
- component: {fileID: 114828095492242986}
- component: {fileID: 61870488345801746}
- component: {fileID: 58070335451103278}
m_Layer: 0
m_Layer: 11
m_Name: Blue
m_TagString: Ball
m_Icon: {fileID: 0}
Expand All @@ -64,7 +64,7 @@ GameObject:
- component: {fileID: 114319434325014218}
- component: {fileID: 61332194053184556}
- component: {fileID: 58792670711448726}
m_Layer: 0
m_Layer: 11
m_Name: Blue
m_TagString: Ball
m_Icon: {fileID: 0}
Expand All @@ -84,7 +84,7 @@ GameObject:
- component: {fileID: 114650026870187508}
- component: {fileID: 61827854896356098}
- component: {fileID: 58778433756361036}
m_Layer: 0
m_Layer: 11
m_Name: Blue
m_TagString: Ball
m_Icon: {fileID: 0}
Expand All @@ -104,7 +104,7 @@ GameObject:
- component: {fileID: 114643147405033960}
- component: {fileID: 61776696610879304}
- component: {fileID: 58662412969009516}
m_Layer: 0
m_Layer: 11
m_Name: Blue
m_TagString: Ball
m_Icon: {fileID: 0}
Expand All @@ -124,7 +124,7 @@ GameObject:
- component: {fileID: 114316741989528722}
- component: {fileID: 61335517028222724}
- component: {fileID: 58418660981929100}
m_Layer: 0
m_Layer: 11
m_Name: Blue
m_TagString: Ball
m_Icon: {fileID: 0}
Expand All @@ -144,7 +144,7 @@ GameObject:
- component: {fileID: 114974192808799670}
- component: {fileID: 61072147375770090}
- component: {fileID: 58094988607562828}
m_Layer: 0
m_Layer: 11
m_Name: Blue
m_TagString: Ball
m_Icon: {fileID: 0}
Expand All @@ -164,7 +164,7 @@ GameObject:
- component: {fileID: 114786736490641498}
- component: {fileID: 61692922646607574}
- component: {fileID: 58499143337115060}
m_Layer: 0
m_Layer: 11
m_Name: Blue
m_TagString: Ball
m_Icon: {fileID: 0}
Expand Down Expand Up @@ -201,7 +201,7 @@ GameObject:
- component: {fileID: 114441869324100516}
- component: {fileID: 61583165530011032}
- component: {fileID: 58098711830136144}
m_Layer: 0
m_Layer: 11
m_Name: Blue
m_TagString: Ball
m_Icon: {fileID: 0}
Expand All @@ -221,7 +221,7 @@ GameObject:
- component: {fileID: 114958872278698042}
- component: {fileID: 61666290714655612}
- component: {fileID: 58786529027543194}
m_Layer: 0
m_Layer: 11
m_Name: Blue
m_TagString: Ball
m_Icon: {fileID: 0}
Expand Down Expand Up @@ -992,7 +992,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: bddc5a2d02691471bacab127605152e3, type: 3}
m_Name:
m_EditorClassIdentifier:
painted: 0
GhostBall: {fileID: 1118720360438174, guid: 38c7fad19737da2478f832de202fe85b, type: 2}
isDead: 0
--- !u!114 &114319434325014218
MonoBehaviour:
m_ObjectHideFlags: 1
Expand All @@ -1004,7 +1006,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: bddc5a2d02691471bacab127605152e3, type: 3}
m_Name:
m_EditorClassIdentifier:
painted: 0
GhostBall: {fileID: 1118720360438174, guid: 38c7fad19737da2478f832de202fe85b, type: 2}
isDead: 0
--- !u!114 &114441869324100516
MonoBehaviour:
m_ObjectHideFlags: 1
Expand All @@ -1016,7 +1020,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: bddc5a2d02691471bacab127605152e3, type: 3}
m_Name:
m_EditorClassIdentifier:
painted: 0
GhostBall: {fileID: 1118720360438174, guid: 38c7fad19737da2478f832de202fe85b, type: 2}
isDead: 0
--- !u!114 &114643147405033960
MonoBehaviour:
m_ObjectHideFlags: 1
Expand All @@ -1028,7 +1034,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: bddc5a2d02691471bacab127605152e3, type: 3}
m_Name:
m_EditorClassIdentifier:
painted: 0
GhostBall: {fileID: 1118720360438174, guid: 38c7fad19737da2478f832de202fe85b, type: 2}
isDead: 0
--- !u!114 &114650026870187508
MonoBehaviour:
m_ObjectHideFlags: 1
Expand All @@ -1040,7 +1048,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: bddc5a2d02691471bacab127605152e3, type: 3}
m_Name:
m_EditorClassIdentifier:
painted: 0
GhostBall: {fileID: 1118720360438174, guid: 38c7fad19737da2478f832de202fe85b, type: 2}
isDead: 0
--- !u!114 &114680654756982996
MonoBehaviour:
m_ObjectHideFlags: 1
Expand All @@ -1052,7 +1062,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: bddc5a2d02691471bacab127605152e3, type: 3}
m_Name:
m_EditorClassIdentifier:
painted: 0
GhostBall: {fileID: 1118720360438174, guid: 38c7fad19737da2478f832de202fe85b, type: 2}
isDead: 0
--- !u!114 &114690079047935622
MonoBehaviour:
m_ObjectHideFlags: 1
Expand Down Expand Up @@ -1085,7 +1097,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: bddc5a2d02691471bacab127605152e3, type: 3}
m_Name:
m_EditorClassIdentifier:
painted: 0
GhostBall: {fileID: 1118720360438174, guid: 38c7fad19737da2478f832de202fe85b, type: 2}
isDead: 0
--- !u!114 &114828095492242986
MonoBehaviour:
m_ObjectHideFlags: 1
Expand All @@ -1097,7 +1111,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: bddc5a2d02691471bacab127605152e3, type: 3}
m_Name:
m_EditorClassIdentifier:
painted: 0
GhostBall: {fileID: 1118720360438174, guid: 38c7fad19737da2478f832de202fe85b, type: 2}
isDead: 0
--- !u!114 &114958872278698042
MonoBehaviour:
m_ObjectHideFlags: 1
Expand All @@ -1109,7 +1125,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: bddc5a2d02691471bacab127605152e3, type: 3}
m_Name:
m_EditorClassIdentifier:
painted: 0
GhostBall: {fileID: 1118720360438174, guid: 38c7fad19737da2478f832de202fe85b, type: 2}
isDead: 0
--- !u!114 &114974192808799670
MonoBehaviour:
m_ObjectHideFlags: 1
Expand All @@ -1121,7 +1139,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: bddc5a2d02691471bacab127605152e3, type: 3}
m_Name:
m_EditorClassIdentifier:
painted: 0
GhostBall: {fileID: 1118720360438174, guid: 38c7fad19737da2478f832de202fe85b, type: 2}
isDead: 0
--- !u!212 &212040086861806110
SpriteRenderer:
m_ObjectHideFlags: 1
Expand Down
Loading

0 comments on commit 8c2a2ec

Please sign in to comment.