timed button stand puzzle
This commit is contained in:
@@ -18,6 +18,21 @@ PrefabInstance:
|
||||
propertyPath: m_RootOrder
|
||||
value: -1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2966546982734834469, guid: c6f4a21ce6c0ce84584c90804c96ad80,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2966546982734834469, guid: c6f4a21ce6c0ce84584c90804c96ad80,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2966546982734834469, guid: c6f4a21ce6c0ce84584c90804c96ad80,
|
||||
type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2966546982734834469, guid: c6f4a21ce6c0ce84584c90804c96ad80,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
@@ -92,10 +107,14 @@ PrefabInstance:
|
||||
- targetCorrespondingSourceObject: {fileID: 7243067731848781317, guid: c6f4a21ce6c0ce84584c90804c96ad80,
|
||||
type: 3}
|
||||
insertIndex: 2
|
||||
addedObject: {fileID: 2510553829162414157}
|
||||
addedObject: {fileID: 6951216667893815768}
|
||||
- targetCorrespondingSourceObject: {fileID: 7243067731848781317, guid: c6f4a21ce6c0ce84584c90804c96ad80,
|
||||
type: 3}
|
||||
insertIndex: 3
|
||||
addedObject: {fileID: 2510553829162414157}
|
||||
- targetCorrespondingSourceObject: {fileID: 7243067731848781317, guid: c6f4a21ce6c0ce84584c90804c96ad80,
|
||||
type: 3}
|
||||
insertIndex: 4
|
||||
addedObject: {fileID: 4434097653282366288}
|
||||
m_SourcePrefab: {fileID: 100100000, guid: c6f4a21ce6c0ce84584c90804c96ad80, type: 3}
|
||||
--- !u!1 &1478369497145927568 stripped
|
||||
@@ -116,6 +135,19 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 8418942d5fe34028bdc0165490d5abf7, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
size: {x: 1, y: 1}
|
||||
--- !u!114 &6951216667893815768
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1478369497145927568}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 05ccb586cbc54f9e8c46ade911449f7f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
number: 0
|
||||
--- !u!114 &2510553829162414157
|
||||
MonoBehaviour:
|
||||
@@ -130,6 +162,7 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
color: {r: 8, g: 3.5137255, b: 0, a: 0}
|
||||
startActive: 0
|
||||
emissionRenderer: {fileID: 2117939242591259622}
|
||||
additionalEmissionRenderers:
|
||||
- {fileID: 4765051065728883424}
|
||||
|
||||
@@ -1,23 +1,30 @@
|
||||
using Station46.Modules.Holes.Scripts;
|
||||
using System;
|
||||
using EscapeRoomEngine.Engine.Runtime.Modules;
|
||||
using EscapeRoomEngine.Engine.Runtime.Modules.State;
|
||||
using Station46.Modules.Holes.Scripts;
|
||||
using Station46.Scripts;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Station46.Modules.Hoop.Scripts
|
||||
{
|
||||
[RequireComponent(typeof(Animator))]
|
||||
public class ButtonHoop : Hole
|
||||
[RequireComponent(typeof(Animator), typeof(Hole))]
|
||||
public class ButtonHoop : ModuleState
|
||||
{
|
||||
private static readonly int PressedHash = Animator.StringToHash("Pressed");
|
||||
|
||||
|
||||
public Hole Button { get; private set; }
|
||||
|
||||
private Animator _animator;
|
||||
|
||||
protected override void Start()
|
||||
private void Awake()
|
||||
{
|
||||
base.Start();
|
||||
|
||||
_animator = GetComponent<Animator>();
|
||||
Button = GetComponent<Hole>();
|
||||
}
|
||||
|
||||
ButtonEvent += (_, type) =>
|
||||
private void Start()
|
||||
{
|
||||
Button.ButtonEvent += (_, type) =>
|
||||
{
|
||||
// ReSharper disable once SwitchStatementMissingSomeEnumCasesNoDefault
|
||||
switch (type)
|
||||
@@ -31,5 +38,7 @@ namespace Station46.Modules.Hoop.Scripts
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetModule(Module module) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user