Esempio n. 1
0
        public override void Process(RocketElevatorCall packet)
        {
            GameObject gameObjectRocket = NitroxEntity.RequireObjectFrom(packet.Id);
            Rocket     rocket           = gameObjectRocket.RequireComponent <Rocket>();

            if (packet.Panel == RocketElevatorPanel.EXTERNAL_PANEL)
            {
                rocket.CallElevator(packet.Up);
            }
            else if (packet.Panel == RocketElevatorPanel.INTERNAL_PANEL)
            {
                rocket.ElevatorControlButtonActivate();
            }
        }