Exemplo n.º 1
0
        public void Close()
        {
            if (gameObject == null)
            {
                return;                                 // probably destroyed by a shuttle crash
            }
            if (Time.time < delayStartTime + inputDelay)
            {
                return;
            }

            delayStartTime = Time.time;

            IsClosed = true;

            if (!isPerformingAction)
            {
                DoorUpdateMessage.SendToAll(gameObject, DoorUpdateType.Close);
                if (damageOnClose)
                {
                    ServerDamageOnClose();
                }
            }
        }
Exemplo n.º 2
0
 private void ServerPressureWarn()
 {
     DoorUpdateMessage.SendToAll(gameObject, DoorUpdateType.PressureWarn);
     pressureWarnActive = true;
     StartCoroutine(PressureWarnDelay());
 }