예제 #1
0
    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>();
    }
예제 #2
0
 private void Start()
 {
     audioSync = GameObject.FindGameObjectsWithTag("Player")[0].GetComponent <audioSync>();
     Debug.Log("sTEP1");
 }
예제 #3
0
 void Start()
 {
     audioSync = this.GetComponent <audioSync>();
 }