private object OnLiftUse(ProceduralLift lift, BasePlayer player) { NeedleLift needleLift = lift.GetComponent <NeedleLift>(); if (needleLift != null) { needleLift.OnLiftUse(); return(true); } return(null); }
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); } }