end terminal placement

This commit is contained in:
2023-05-15 20:52:27 +02:00
parent bbdae70907
commit 16a69d2fec
12 changed files with 76 additions and 13 deletions

View File

@@ -758,7 +758,7 @@ ParticleSystem:
startSize:
serializedVersion: 2
minMaxState: 0
scalar: 0.01
scalar: 0.02
minScalar: 0.001
maxCurve:
serializedVersion: 2
@@ -10952,7 +10952,7 @@ ParticleSystem:
startSize:
serializedVersion: 2
minMaxState: 0
scalar: 0.003
scalar: 0.006
minScalar: 1
maxCurve:
serializedVersion: 2
@@ -16154,7 +16154,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: '5 Beacons
m_text: '5 beacons
successfully
@@ -16165,7 +16165,7 @@ MonoBehaviour:
Thank you
thank you
for
playing'

View File

@@ -125,8 +125,8 @@ Material:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 0, g: 4.329412, b: 8, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _NoiseSpeed: {r: -0.1, g: 0, b: 0, a: 0}
- _ScrollingSpeed: {r: 0.01, g: 0, b: 0, a: 0}
- _NoiseSpeed: {r: 0.1, g: 0, b: 0, a: 0}
- _ScrollingSpeed: {r: -0.01, g: 0, b: 0, a: 0}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
--- !u!114 &4030118509478967149

View File

@@ -1,4 +1,7 @@
using EscapeRoomEngine.Engine.Runtime.Modules;
using System;
using EscapeRoomEngine.Engine.Runtime;
using EscapeRoomEngine.Engine.Runtime.Measurements;
using EscapeRoomEngine.Engine.Runtime.Modules;
using EscapeRoomEngine.Engine.Runtime.Modules.State;
using EscapeRoomEngine.VR.Runtime;
using NaughtyAttributes;
@@ -12,6 +15,23 @@ namespace Station46.Modules.End_Terminal.Scripts
[BoxGroup("Internal")] [SerializeField] private TMP_Text text;
[BoxGroup("Internal")] [SerializeField] private Transform rotation;
public int BeaconsActivated
{
set
{
var currentText = text.text;
currentText = value == 1
? currentText.Replace("beacons", "beacon")
: currentText.Replace("beacon", "beacons");
text.text = value + currentText[currentText.IndexOf(' ')..];
}
}
private void Start()
{
BeaconsActivated = Measure.PuzzlesSolved;
}
private void Update()
{
var lookAt =