コード例 #1
0
    public void InitMovement(DirectionHelper.Directions direction)
    {
        head.speed = speed;
        head.InitMovement(direction);

        ClientInitMovement(direction);
    }
コード例 #2
0
    public void InitMovement(DirectionHelper.Directions direction)
    {
        movementDirection = direction;
        nextLoc           = new Vector2(transform.position.x, transform.position.z);
        prevLoc           = nextLoc;
        SetNewNextLoc();

        if (nextTail != null)
        {
            nextTail.InitMovement(direction);
        }
    }