// Use this for initialization void Start() { UserMenu = this.transform.parent.GetChild(3).gameObject.GetComponent <UserMenuScript>(); // user A UserBScript = userB.GetComponent <userBScript>(); // user B //Debug.Log(UserBScript.name); }
// Use this for initialization void Start() { UserMenu = this.transform.parent.GetChild(3).gameObject.GetComponent <UserMenuScript>(); }