using Core; using DG.Tweening; namespace Components { public class GroundTile : BaseMonoBehaviour { public int GroundIndex { get; private set; } protected override void ReleaseReferences() { // } public void Initialize() { // } public void SetPosition(int inIndex, float inZPos) { GroundIndex = inIndex; transform.DOLocalMoveZ(inIndex * inZPos, 0f); } } }