Beispiel #1
0
        private object OnLiftUse(ProceduralLift lift, BasePlayer player)
        {
            NeedleLift needleLift = lift.GetComponent <NeedleLift>();

            if (needleLift != null)
            {
                needleLift.OnLiftUse();
                return(true);
            }

            return(null);
        }
Beispiel #2
0
 public void OnButtonPressed()
 {
     if (!lift.isMoving && ((isLower && lift.directionUp) || (!isLower && !lift.directionUp)))
     {
         lift.OnLiftUse();
         Effect.server.Run(LOCK_ALLOW, transform.position);
     }
     else
     {
         Effect.server.Run(LOCK_DENIED, transform.position);
     }
 }