[Fix] All in one + add dice
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AllIn1SpriteShader
|
||||
{
|
||||
public class DemoRepositionExpositor : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private float paddingX = 10f;
|
||||
|
||||
[ContextMenu("RepositionExpositor")]
|
||||
private void RepositionExpositor()
|
||||
{
|
||||
int i = 0;
|
||||
Vector3 tempLocalPos = Vector3.zero;
|
||||
foreach (Transform child in transform)
|
||||
{
|
||||
tempLocalPos.x = i * paddingX;
|
||||
child.localPosition = tempLocalPos;
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user