mirror of
https://github.com/Mukheem/TwinTurbine.git
synced 2025-05-07 05:40:35 +02:00
Spawning talking avatar
This commit is contained in:
parent
301d4dee84
commit
9268d2e6b0
Assets
SharedSpatialAnchors
ThirdParty/Photon/PhotonUnityNetworking/Resources
2286
Assets/SharedSpatialAnchors/Prefabs/Resources/TalkingAvatar.prefab
Normal file
2286
Assets/SharedSpatialAnchors/Prefabs/Resources/TalkingAvatar.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 07763ca13338457409391f700224d64b
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -72,7 +72,10 @@ public class SharedAnchorControlPanel : MonoBehaviour
|
|||||||
[SerializeField]
|
[SerializeField]
|
||||||
private GameObject TwinTurbine_menuItem;
|
private GameObject TwinTurbine_menuItem;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
private GameObject TwinTurbine_talkingAvatar;
|
||||||
|
|
||||||
|
|
||||||
public TextMeshProUGUI StatusText
|
public TextMeshProUGUI StatusText
|
||||||
{
|
{
|
||||||
get { return statusText; }
|
get { return statusText; }
|
||||||
@ -198,7 +201,12 @@ public class SharedAnchorControlPanel : MonoBehaviour
|
|||||||
|
|
||||||
}
|
}
|
||||||
if (i == 2)
|
if (i == 2)
|
||||||
|
{
|
||||||
|
var networkedCube = PhotonPun.PhotonNetwork.Instantiate(TwinTurbine_talkingAvatar.name, new Vector3(((Vector3)worldPosition).x, 1.0f, ((Vector3)worldPosition).z), Quaternion.identity);
|
||||||
|
var photonGrabbable = networkedCube.GetComponent<PhotonGrabbableObject>();
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -375,5 +383,8 @@ public class SharedAnchorControlPanel : MonoBehaviour
|
|||||||
var photonGrabbableGui = networkedGUI.GetComponent<PhotonGrabbableObject>();
|
var photonGrabbableGui = networkedGUI.GetComponent<PhotonGrabbableObject>();
|
||||||
|
|
||||||
photonGrabbableGui.TransferOwnershipToLocalPlayer();
|
photonGrabbableGui.TransferOwnershipToLocalPlayer();
|
||||||
|
|
||||||
|
var networkedAvatar = PhotonPun.PhotonNetwork.Instantiate(TwinTurbine_talkingAvatar.name, new Vector3(1f, 0f, 2f), Quaternion.identity);
|
||||||
|
var photonGrabbableAvatar = networkedAvatar.GetComponent<PhotonGrabbableObject>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,7 @@ MonoBehaviour:
|
|||||||
- OnColocatedAck
|
- OnColocatedAck
|
||||||
- RPC_EmergencyButtonClick
|
- RPC_EmergencyButtonClick
|
||||||
- RPC_GreenButtonClick
|
- RPC_GreenButtonClick
|
||||||
|
- RPC_VoltageUpdate
|
||||||
DisableAutoOpenWizard: 1
|
DisableAutoOpenWizard: 1
|
||||||
ShowSettings: 1
|
ShowSettings: 1
|
||||||
DevRegionSetOnce: 1
|
DevRegionSetOnce: 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user