コード例 #1
0
    //-------------------------------------------Unity Functions-------------------------------------------

    private void Start()
    {
        var pos = BlockGrid.GetNearestTilePos(transform.position);

        pos.y = transform.position.y;
        transform.position = pos;
        mTargetPos         = transform.position;
    }