void Start() { carControl = GetComponent <HoverCarControl>(); for (int i = 0; i < wheels.Count; i++) { defaultPositions[i] = wheels[i].transform.localPosition; } }
void Start() { points = FindObjectOfType <Waypoints>().points; carControl = GetComponent <HoverCarControl>(); rigid = GetComponent <Rigidbody>(); currentPoint = new Vector3(points[currentPointIndex].position.x, 0, points[currentPointIndex].position.z); defaultPointDistance = nextPointDistance; }
public static void Set2of2(Camera camera, HoverCarControl control) { Rect rect = new Rect(); rect.x = 0.5f; rect.width = 1.0f; rect.y = 0.0f; rect.height = 1.0f; camera.rect = rect; control.cameraRect = rect; }
private void Awake() { if (instance != null) { return; } instance = this; playerControllerScript = GetComponent <HoverCarControl>(); playerCurrHealth = playerMaxHealth; Cursor.lockState = CursorLockMode.Confined; }
void Start() { foreach (WaypointFollower wf in FindObjectsOfType <WaypointFollower>()) { wf.enabled = false; } foreach (HoverCarControl hcc in FindObjectsOfType <HoverCarControl>()) { if (hcc.playerControlled) { playerCar = hcc; hcc.playerControlled = false; } } startedCounting = true; }
// Use this for initialization void Start() { Gm = GameObject.Find("GameManager").GetComponent <GameManager>(); HoverList = GameObject.Find("Hovers").gameObject; HoverPlayer = HoverList.transform.GetChild(0).gameObject.GetComponent <HoverCarControl>(); for (int i = 1; i < HoverList.transform.childCount; i++) { HoverEnemies.Add(HoverList.transform.GetChild(i).gameObject.GetComponent <HoverCarAI>()); } if (HoverPlayer != null) { StartCoroutine(StartRace()); } }
void Start() { carControl = GetComponent <HoverCarControl>(); rigid = GetComponent <Rigidbody>(); }
void Start() { carControl = GetComponent <HoverCarControl>(); carRigid = GetComponent <Rigidbody>(); pitchDiff = maxPitch - minPitch; }
private void Awake() { i = this; //Set singleton }
void Start() { wheelRigid = GetComponent <Rigidbody>(); carControl = GetComponentInParent <HoverCarControl>(); rigid = GetComponentInParent <Rigidbody>(); }
// Use this for initialization void Start() { hover = GetComponent <HoverCarControl> (); }