Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GDW-SS-18
to-the-surface
Commits
c1097a51
Commit
c1097a51
authored
Sep 28, 2018
by
Christopher Benes
Browse files
Level 14 gebaut
parent
0473bf29
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Assets/_Game/Scenes/Levels/Level10.unity
View file @
c1097a51
...
@@ -217,11 +217,11 @@ Prefab:
...
@@ -217,11 +217,11 @@ Prefab:
objectReference
:
{
fileID
:
0
}
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4383029025640084
,
guid
:
643858c7b38da3e42aec11e5bd268411
,
type
:
2
}
-
target
:
{
fileID
:
4383029025640084
,
guid
:
643858c7b38da3e42aec11e5bd268411
,
type
:
2
}
propertyPath
:
m_LocalRotation.z
propertyPath
:
m_LocalRotation.z
value
:
1
value
:
-0.7071068
objectReference
:
{
fileID
:
0
}
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4383029025640084
,
guid
:
643858c7b38da3e42aec11e5bd268411
,
type
:
2
}
-
target
:
{
fileID
:
4383029025640084
,
guid
:
643858c7b38da3e42aec11e5bd268411
,
type
:
2
}
propertyPath
:
m_LocalRotation.w
propertyPath
:
m_LocalRotation.w
value
:
0
value
:
0
.7071068
objectReference
:
{
fileID
:
0
}
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4383029025640084
,
guid
:
643858c7b38da3e42aec11e5bd268411
,
type
:
2
}
-
target
:
{
fileID
:
4383029025640084
,
guid
:
643858c7b38da3e42aec11e5bd268411
,
type
:
2
}
propertyPath
:
m_RootOrder
propertyPath
:
m_RootOrder
...
@@ -234,12 +234,12 @@ Prefab:
...
@@ -234,12 +234,12 @@ Prefab:
objectReference
:
{
fileID
:
703386524
}
objectReference
:
{
fileID
:
703386524
}
-
target
:
{
fileID
:
4383029025640084
,
guid
:
643858c7b38da3e42aec11e5bd268411
,
type
:
2
}
-
target
:
{
fileID
:
4383029025640084
,
guid
:
643858c7b38da3e42aec11e5bd268411
,
type
:
2
}
propertyPath
:
m_LocalEulerAnglesHint.z
propertyPath
:
m_LocalEulerAnglesHint.z
value
:
18
0
value
:
-9
0
objectReference
:
{
fileID
:
0
}
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
114953758882948998
,
guid
:
643858c7b38da3e42aec11e5bd268411
,
-
target
:
{
fileID
:
114953758882948998
,
guid
:
643858c7b38da3e42aec11e5bd268411
,
type
:
2
}
type
:
2
}
propertyPath
:
orientation
propertyPath
:
orientation
value
:
2
value
:
1
objectReference
:
{
fileID
:
0
}
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
114953758882948998
,
guid
:
643858c7b38da3e42aec11e5bd268411
,
-
target
:
{
fileID
:
114953758882948998
,
guid
:
643858c7b38da3e42aec11e5bd268411
,
type
:
2
}
type
:
2
}
...
...
Assets/_Game/Scenes/Levels/Level14.unity
View file @
c1097a51
This diff is collapsed.
Click to expand it.
Assets/_Game/Scenes/Levels/Level15.unity
0 → 100644
View file @
c1097a51
This diff is collapsed.
Click to expand it.
Assets/_Game/Scenes/Levels/Level15.unity.meta
0 → 100644
View file @
c1097a51
fileFormatVersion: 2
guid: 9371fda64737d4442b4097fec4a95911
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/_Game/Scripts/InteractibleLever.cs
View file @
c1097a51
...
@@ -23,11 +23,6 @@ public class InteractibleLever : MonoBehaviour, IInteractible, IResetable {
...
@@ -23,11 +23,6 @@ public class InteractibleLever : MonoBehaviour, IInteractible, IResetable {
ResetToLevelBegin
();
ResetToLevelBegin
();
}
}
private
void
Start
()
{
onInteract
.
Invoke
(
state
);
onInteractInversed
.
Invoke
(!
state
);
}
public
void
Interact
(
PlayerActor
source
)
{
public
void
Interact
(
PlayerActor
source
)
{
if
(
source
.
Orientation
==
orientation
)
{
if
(
source
.
Orientation
==
orientation
)
{
state
=
!
state
;
state
=
!
state
;
...
@@ -45,6 +40,6 @@ public class InteractibleLever : MonoBehaviour, IInteractible, IResetable {
...
@@ -45,6 +40,6 @@ public class InteractibleLever : MonoBehaviour, IInteractible, IResetable {
public
void
ResetToLevelBegin
()
{
public
void
ResetToLevelBegin
()
{
state
=
isActive
;
state
=
isActive
;
UpdateSprite
();
UpdateSprite
();
onInteract
.
Invoke
(
isActive
);
}
}
}
}
Assets/_Game/Scripts/LaserController.cs
View file @
c1097a51
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine
;
using
NaughtyAttributes
;
public
class
LaserController
:
MonoBehaviour
{
public
class
LaserController
:
MonoBehaviour
{
...
@@ -23,4 +24,13 @@ public class LaserController : MonoBehaviour {
...
@@ -23,4 +24,13 @@ public class LaserController : MonoBehaviour {
c
.
enabled
=
value
;
c
.
enabled
=
value
;
}
}
}
}
[
Button
]
public
void
ToggleState
()
{
if
(
laserRenderer
[
0
]
==
null
)
return
;
bool
state
=
laserRenderer
[
0
].
enabled
;
SetState
(!
state
);
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment