Esempio n. 1
0
 public virtual void OnGrab(int direction, ItemBracelet bracelet)
 {
     if (!isMoving && !flags.HasFlag(TileFlags.NotGrabbable)) {
         Player player = roomControl.Player;
         player.GrabState.Bracelet = bracelet;
         player.BeginState(player.GrabState);
     }
 }
 public override void OnGrab(int direction, ItemBracelet bracelet)
 {
     if (direction == Directions.Reverse(this.direction)) {
         Player player = RoomControl.Player;
         player.PullHandleState.Bracelet			= bracelet;
         player.PullHandleState.PullHandleTile	= this;
         player.BeginState(player.PullHandleState);
         isBeingPulled = true;
     }
 }
 //-----------------------------------------------------------------------------
 // Constructors
 //-----------------------------------------------------------------------------
 public PlayerGrabState()
 {
     bracelet	= null;
     duration	= 10;
 }