private void OnTriggerEnter(Collider other) { PhotonView pv = other.GetComponent <PhotonView>(); if (pv != null && pv.IsMine) { tag = TextTag.createTag(this.transform, "sample text"); Debug.Log("player can pickup item"); } }