// Start is called before the first frame update void Start() { getMoveScripts(); cameraFollow_script = Main_Camera.GetComponent <CamerFollow>(); gameObjects = new GameObject[] { Gears, Luz, Brute, Pump, Sat }; players = new Player[] { gearMove_script, luzMove_script, bruteMove_script, pumpMove_script, satMove_script }; setSelected(isLocalPlayerInt); selectCameraFollow(); }
// Start is called before the first frame update void Start() { //set references player = GameObject.FindGameObjectWithTag("Player"); playerBody = player.GetComponent <Rigidbody>(); playerCam = Camera.main.GetComponent <CamerFollow>(); hudUI = GameObject.Find("HUD"); hudScript = hudUI.GetComponent <HUD>(); soundEffect = GameObject.Find("CarHit"); hit = soundEffect.GetComponent <AudioSource>(); }
// Use this for initialization void Awake() { _instance = this; }