Exemplo n.º 1
0
    private void Start()
    {
        LM = GetComponent <LampuMobil>();

        GetComponent <Rigidbody>().centerOfMass = centerPoint;
        Transform[] pathT = path.GetComponentsInChildren <Transform>();
        nodes = new List <Transform>();

        for (int i = 0; i < pathT.Length; i++)
        {
            if (pathT[i] != path.transform)
            {
                nodes.Add(pathT[i]);
            }
        }
    }