- Added image clues to the ACME Crimenet Computer. - Improved functionality of the ACME Crimenet Computer.
56 lines
1.1 KiB
C#
56 lines
1.1 KiB
C#
|
|
using TMPro;
|
|
using UdonSharp;
|
|
using UnityEngine;
|
|
using VRC.SDK3.UdonNetworkCalling;
|
|
using VRC.SDKBase;
|
|
using VRC.Udon;
|
|
|
|
|
|
[UdonBehaviourSyncMode(BehaviourSyncMode.NoVariableSync)]
|
|
public class VideoMusicClueSkateboard : UdonSharpBehaviour
|
|
{
|
|
[SerializeField] private Transform _VHSCassette;
|
|
[SerializeField] private Transform _ClueCard;
|
|
|
|
[Space]
|
|
|
|
[SerializeField] private TextMeshProUGUI _HeaderTextGUI;
|
|
[SerializeField] private TextMeshProUGUI _ClueTextGUI;
|
|
|
|
private Animator _Animator;
|
|
|
|
|
|
void Start()
|
|
{
|
|
_Animator = GetComponent<Animator>();
|
|
}
|
|
|
|
|
|
[NetworkCallable]
|
|
public void ResetSkateboard()
|
|
{
|
|
_Animator.SetBool("Swooce Right In", false);
|
|
|
|
_VHSCassette.localPosition = Vector3.zero;
|
|
_VHSCassette.localRotation = Quaternion.identity;
|
|
|
|
_ClueCard.localPosition = Vector3.zero;
|
|
_ClueCard.localRotation = Quaternion.identity;
|
|
}
|
|
|
|
[NetworkCallable]
|
|
public void SetCardTexts(string Header, string Clue)
|
|
{
|
|
_HeaderTextGUI.text = Header;
|
|
_ClueTextGUI.text = Clue;
|
|
}
|
|
|
|
|
|
[NetworkCallable]
|
|
public void SwooceRightIn()
|
|
{
|
|
_Animator.SetBool("Swooce Right In", true);
|
|
}
|
|
}
|