void Start() { //spawnPoint = new Vector3(-10.6700001f, 2.66000009f, -22.1499996f); //playerName = GetComponent<NetworkIdentity>().netId.ToString(); if (isLocalPlayer) { CmdSetName(NameGetter.playerName); } else { soundtrack.SetActive(false); } transform.Find("player_model_001").transform.Find("body_geo").GetComponent <MeshRenderer>().material = mats[playerIndex]; winsText.text = ""; audioSync = this.GetComponent <audioSync>(); }
private void Start() { audioSync = GameObject.FindGameObjectsWithTag("Player")[0].GetComponent <audioSync>(); Debug.Log("sTEP1"); }
void Start() { audioSync = this.GetComponent <audioSync>(); }