Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     AudioSource        = this.gameObject.GetComponent <AudioSource>();
     collider.enabled   = false;
     _PhotonViewControl = GetComponent <PhotonView>();
     GJS = GameObject.Find("GameJudge");
     GJ  = GJS.GetComponent <GameJudgeScript>();
     this.myPhotonView = GetComponent <PhotonView>();
 }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     AudioSource = this.gameObject.GetComponent <AudioSource>();
     Destroy(this.gameObject, 2);
     GameObject         = GameObject.Find("OnlineScript");
     _PhotonViewControl = GetComponent <PhotonView>();
     GJS = GameObject.Find("GameJudge");
     GJ  = GJS.GetComponent <GameJudgeScript>();
 }