Ejemplo n.º 1
0
    public Vector3 GetPoint(Controller.Direction direction)
    {
        switch (direction)
        {
        case Controller.Direction.Top:
            return(releaseTop.position);

            break;

        case Controller.Direction.Left:
            return(releaseLeft.position);

            break;

        case Controller.Direction.Bottom:
            return(releaseBottom.position);

            break;

        case Controller.Direction.Right:
            return(releaseRight.position);

            break;

        default:
            return(releaseBottom.position);
        }
    }
Ejemplo n.º 2
0
    public void Active(Controller.Direction direction)
    {
        ResetAll();
        switch (direction)
        {
        case Controller.Direction.Top:
            attackTop.gameObject.SetActive(true);
            break;

        case Controller.Direction.Left:
            attackLeft.gameObject.SetActive(true);
            break;

        case Controller.Direction.Bottom:
            attackBottom.gameObject.SetActive(true);
            break;

        case Controller.Direction.Right:
            attackRight.gameObject.SetActive(true);
            break;
        }
    }