mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 06:35:45 +00:00
i am smart
This commit is contained in:
parent
4e38a0463e
commit
e5e57c1df8
@ -97,25 +97,10 @@ public class QSBAlarmTotem : WorldObject<AlarmTotem>
|
||||
_isLocallyVisible = CheckPlayerVisible();
|
||||
if (_isLocallyVisible && !isLocallyVisible)
|
||||
{
|
||||
Locator.GetAlarmSequenceController().IncreaseAlarmCounter();
|
||||
AttachedObject._simTotemMaterials[0] = AttachedObject._simAlarmMaterial;
|
||||
AttachedObject._simTotemRenderer.sharedMaterials = AttachedObject._simTotemMaterials;
|
||||
AttachedObject._simVisionConeRenderer.SetColor(AttachedObject._simAlarmColor);
|
||||
if (AttachedObject._isTutorialTotem)
|
||||
{
|
||||
GlobalMessenger.FireEvent("TutorialAlarmTotemTriggered");
|
||||
}
|
||||
|
||||
this.SendMessage(new SetVisibleMessage(true));
|
||||
}
|
||||
else if (isLocallyVisible && !_isLocallyVisible)
|
||||
{
|
||||
Locator.GetAlarmSequenceController().DecreaseAlarmCounter();
|
||||
AttachedObject._simTotemMaterials[0] = AttachedObject._origSimEyeMaterial;
|
||||
AttachedObject._simTotemRenderer.sharedMaterials = AttachedObject._simTotemMaterials;
|
||||
AttachedObject._simVisionConeRenderer.SetColor(AttachedObject._simVisionConeRenderer.GetOriginalColor());
|
||||
AttachedObject._pulseLightController.FadeTo(0f, 0.5f);
|
||||
|
||||
this.SendMessage(new SetVisibleMessage(false));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user