Hi, i have 2 cubes Test1 an Test2 and the Script is attached to Test2 but nothing happens. I tried so many things from the Forum but nothing worked for me, hope someone can help me with that.
using UnityEngine;
using System.Collections;
public class ExampleClass : MonoBehaviour
{
void start()
{
GameObject test = GameObject.Find("Test1");
this.transform.parent = test.transform;
}
}
↧