mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-04-16 14:42:35 +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();
|
_isLocallyVisible = CheckPlayerVisible();
|
||||||
if (_isLocallyVisible && !isLocallyVisible)
|
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));
|
this.SendMessage(new SetVisibleMessage(true));
|
||||||
}
|
}
|
||||||
else if (isLocallyVisible && !_isLocallyVisible)
|
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));
|
this.SendMessage(new SetVisibleMessage(false));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user