Commit c1097a51 authored by Christopher Benes's avatar Christopher Benes
Browse files

Level 14 gebaut

parent 0473bf29
......@@ -217,11 +217,11 @@ Prefab:
objectReference: {fileID: 0}
- target: {fileID: 4383029025640084, guid: 643858c7b38da3e42aec11e5bd268411, type: 2}
propertyPath: m_LocalRotation.z
value: 1
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: 4383029025640084, guid: 643858c7b38da3e42aec11e5bd268411, type: 2}
propertyPath: m_LocalRotation.w
value: 0
value: 0.7071068
objectReference: {fileID: 0}
- target: {fileID: 4383029025640084, guid: 643858c7b38da3e42aec11e5bd268411, type: 2}
propertyPath: m_RootOrder
......@@ -234,12 +234,12 @@ Prefab:
objectReference: {fileID: 703386524}
- target: {fileID: 4383029025640084, guid: 643858c7b38da3e42aec11e5bd268411, type: 2}
propertyPath: m_LocalEulerAnglesHint.z
value: 180
value: -90
objectReference: {fileID: 0}
- target: {fileID: 114953758882948998, guid: 643858c7b38da3e42aec11e5bd268411,
type: 2}
propertyPath: orientation
value: 2
value: 1
objectReference: {fileID: 0}
- target: {fileID: 114953758882948998, guid: 643858c7b38da3e42aec11e5bd268411,
type: 2}
......
This diff is collapsed.
This diff is collapsed.
fileFormatVersion: 2
guid: 9371fda64737d4442b4097fec4a95911
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -23,11 +23,6 @@ public class InteractibleLever : MonoBehaviour, IInteractible, IResetable {
ResetToLevelBegin();
}
private void Start() {
onInteract.Invoke(state);
onInteractInversed.Invoke(!state);
}
public void Interact(PlayerActor source) {
if (source.Orientation == orientation) {
state = !state;
......@@ -45,6 +40,6 @@ public class InteractibleLever : MonoBehaviour, IInteractible, IResetable {
public void ResetToLevelBegin() {
state = isActive;
UpdateSprite();
onInteract.Invoke(isActive);
}
}
using System.Collections.Generic;
using UnityEngine;
using NaughtyAttributes;
public class LaserController : MonoBehaviour {
......@@ -23,4 +24,13 @@ public class LaserController : MonoBehaviour {
c.enabled = value;
}
}
[Button]
public void ToggleState() {
if (laserRenderer[0] == null) return;
bool state = laserRenderer[0].enabled;
SetState(!state);
}
}
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