void Start() { test = GetComponent<LeftRightTest>(); sim = GetComponent<ButtonSimulator>(); sim2 = engineLeft.GetComponent<ForwardBackSimulator>(); AI = transform.parent.GetComponent<SpawnManager>(); AI.isAI = true; }
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() { nodeTransform = GameObject.Find("Node1").transform; currentNode = nodeTransform.GetComponent<Node>(); test = GetComponent<LeftRightTest>(); }