10 Panels, each with 4 index(1 column), 8 are filled panels and two are empty , I wrote one script to access each index for each panel,
Question how can I move first index prefab of a specific panel, to the last empty index of another specific panel ?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FindingReferenceofAnObject : MonoBehaviour
{
// Start is called before the first frame update
public GameObject ObjectToFind1;
public GameObject ObjectToFind2;
public GameObject ObjectToFind3;
public GameObject ObjectToFind4;
void Start()
{
ObjectToFind1 = transform.GetChild(0).gameObject;
ObjectToFind2= transform.GetChild(1).gameObject;
ObjectToFind3 = transform.GetChild(2).gameObject;
ObjectToFind4 = transform.GetChild(3).gameObject;
// how do I transform ?
}
// Update is called once per frame
void Update()
{
}
}