Exemplo n.º 1
0
    public MoveObject[] FallMove()
    {
        MoveObject[] moveObjects = new MoveObject[2];

        Vector3 start  = gameTask.playerTask.transform.position;
        Vector3 end    = transform.position;
        Vector3 center = (start + end) / 2 + Vector3.up * 2f;

        BesieData bData = new BesieData(start, end, center);

        Vector3[] poss = bData.Positions(20);

        GameObject player = gameTask.playerTask.gameObject;

        moveObjects[0] = new MoveObject(player, poss, 4f);

        Vector3 fallPoint = end - Vector3.up * StageCreateTask.Y_Scale;

        moveObjects[1] = new MoveObject(player, new Vector3[] { end, fallPoint }, 5f);

        return(moveObjects);
    }
Exemplo n.º 2
0
    public MoveObject WarpMove()
    {
        Vector3[] poss;

        if (lineCreateFlag)
        {
            poss = besieData.Positions(20);
        }
        else
        {
            Vector3[] vec3s = warpPos.besieData.Positions(20);
            poss = new Vector3[vec3s.Length];
            for (int i = 0; i < vec3s.Length; i++)
            {
                poss[i] = vec3s[vec3s.Length - i  - 1];
            }
        }

        GameObject player = gameTask.playerTask.gameObject;

        MoveObject moveObject = new MoveObject(player, poss, 5f);

        return(moveObject);
    }