void Start() { nodeTransform = GameObject.Find("Node1").transform; currentNode = nodeTransform.GetComponent<Node>(); test = GetComponent<LeftRightTest>(); spawn = parent.GetComponent<SpawnManager>(); velocityL = leftEngine.GetComponent<RigidbodyInfo>(); velocityR = rightEngine.GetComponent<RigidbodyInfo>(); nodeStuffs = GetComponent<NodeRespawn>(); }
void Start() { target = GameObject.Find("Node1").transform; spawn = GetComponent<NodeRespawn>(); }