Example #1
0
    public void DoPosing(PlayerInput.DirectionType direction)
    {
        if (PlayerInput.DirectionType.IDLE != PlayerInput.direction)
        {
            audioSource.PlayOneShot(huwa);
        }
        switch (direction)
        {
        case PlayerInput.DirectionType.UP:
            posingController.Up();
            break;

        case PlayerInput.DirectionType.DOWN:
            posingController.Down();
            break;

        case PlayerInput.DirectionType.RIGHT:
            posingController.Right();
            break;

        case PlayerInput.DirectionType.LEFT:
            posingController.Left();
            break;

        case PlayerInput.DirectionType.IDLE:
            posingController.Idle();
            break;

        default:
            break;
        }
    }
Example #2
0
    public void DoPosing(PlayerInput.DirectionType direction)
    {
        switch (direction)
        {
        case PlayerInput.DirectionType.UP:
            break;

        case PlayerInput.DirectionType.DOWN:
            break;

        case PlayerInput.DirectionType.RIGHT:
            break;

        case PlayerInput.DirectionType.LEFT:
            break;

        default:
            break;
        }
    }
Example #3
0
    public void DoPosing(PlayerInput.DirectionType direction)
    {
        switch (direction)
        {
        case PlayerInput.DirectionType.UP:
            posingController.Up();
            break;

        case PlayerInput.DirectionType.DOWN:
            posingController.Down();
            break;

        case PlayerInput.DirectionType.RIGHT:
            posingController.Right();
            break;

        case PlayerInput.DirectionType.LEFT:
            posingController.Left();
            break;

        default:
            break;
        }
    }
Example #4
0
    public void nextDirection()
    {
        int r = UnityEngine.Random.Range(0, 4);

        directionType = (PlayerInput.DirectionType)Enum.ToObject(typeof(PlayerInput.DirectionType), r);
    }