- Added Black Horse And The Cherry Tree by KT Tunstall to the horse playlist. - Added Buckin' My Horse by Sir Mix-A-Lot to the horse playlist.
29 lines
827 B
C#
29 lines
827 B
C#
|
|
using UdonSharp;
|
|
using UnityEngine;
|
|
using VRC.SDKBase;
|
|
using VRC.Udon;
|
|
|
|
namespace myro.arcade
|
|
{
|
|
[UdonBehaviourSyncMode(BehaviourSyncMode.None)]
|
|
public class GameSettingsApplier : UdonSharpBehaviour
|
|
{
|
|
public GameSettings GameSettingsInstance;
|
|
public Camera CameraLookingAtGame;
|
|
public MeshRenderer ScreenRenderer;
|
|
public AudioSource Music;
|
|
|
|
void Start()
|
|
{
|
|
CameraLookingAtGame.targetTexture = GameSettingsInstance.RenderTextureToUse;
|
|
ScreenRenderer.material.mainTexture = GameSettingsInstance.RenderTextureToUse;
|
|
if (!System.String.IsNullOrEmpty(GameSettingsInstance.ScreenShaderEmissionPropertyName))
|
|
{
|
|
ScreenRenderer.material.SetTexture(GameSettingsInstance.ScreenShaderEmissionPropertyName, GameSettingsInstance.RenderTextureToUse);
|
|
}
|
|
Music.clip = GameSettingsInstance.Music;
|
|
}
|
|
}
|
|
}
|