コード例 #1
0
    private void SetBridgeOnEdge()
    {
        float newX = levelCreator.GetPrevColumn().transform.position.x + levelCreator.GetPrevColumnWidth() / 2f - SpriteUtilities.GetSpriteWidth(BridgePrefab) / 2f - BridgeSpawnOffsetX;

        transform.position = new Vector3(newX, transform.position.y, transform.position.z);
    }