示例#1
0
    public override void handFurnitureUIInfo(ref string messageText, ref string actionText, ref KeyCode keyCode, ref Action action)
    {
        switch (lockType)
        {
        case LockType.password:

            keyCode = KeyCode.Space;

            if (isLock)
            {
                actionText = MessageText.Open();
                action     = PushPassWordPage;
            }
            else
            {
                //Open door switch
                actionText = MessageText.Check();
                action     = CorridorDoorSwitch;
            }

            break;

        case LockType.padLock:

            keyCode = KeyCode.Space;

            if (isLock)
            {
                actionText = MessageText.Open();
                action     = PushOpenPadLockScene;
            }
            else
            {
                actionText = MessageText.Check();
                action     = CorridorDoorSwitch;
            }

            break;

        case LockType.puzzle:
            actionText = MessageText.Open();
            keyCode    = KeyCode.Space;
            action     = ShowLockedMessage;
            break;

        default:
            break;
        }
    }
 public override void handFurnitureUIInfo(ref string messageText, ref string actionText, ref KeyCode keyCode, ref Action action)
 {
     actionText = MessageText.Check();
     keyCode    = KeyCode.Space;
     action     = PushEightPuzzleScene;
 }
示例#3
0
 public override void HandItemUIInfo(ref string actionText, ref KeyCode keycode, ref Action action)
 {
     actionText = MessageText.Check();
     keycode    = KeyCode.Space;
     action     = ItemAction;
 }
示例#4
0
 public override void handFurnitureUIInfo(ref string messageText, ref string actionText, ref KeyCode keyCode, ref Action action)
 {
     actionText = MessageText.Check();
     keyCode    = KeyCode.Space;
     action     = BookShelfAction;
 }
示例#5
0
    public override void handFurnitureUIInfo(ref string messageText, ref string actionText, ref KeyCode keyCode, ref Action action)
    {
        switch (lockType)
        {
        case LockType.puzzle:

            actionText = MessageText.Open();
            keyCode    = KeyCode.Space;

            if (isLock)
            {
                messageText = MessageText.Locked();
                action      = base.ShowLockedMessage;
            }
            else
            {
                action = CorridorDoorSwitch;
            }

            break;

        case LockType.password:

            keyCode = KeyCode.Space;

            if (isLock)
            {
                actionText = MessageText.Open();
                action     = PushPassWordPage;
            }
            else
            {
                //Open door switch
                actionText = MessageText.Check();
                action     = CorridorDoorSwitch;
            }

            break;

        case LockType.padLock:

            if (isLock)
            {
                actionText = MessageText.Open();
                keyCode    = KeyCode.Space;
                action     = PushOpenPadLockScene;
            }
            else
            {
                actionText = MessageText.Check();
                keyCode    = KeyCode.Space;
                action     = GetItemInBox;
            }

            break;

        case LockType.screw:
            break;

        case LockType.riddle:

            //Todo
            if (true)
            {
            }

            break;
        }
    }