Added treasure rooms
Added keyslot compatibility Frames look at when you look away Fixed snow globes
This commit is contained in:
parent
056cac8df1
commit
e9152782aa
23 changed files with 530 additions and 87 deletions
|
@ -39,6 +39,14 @@ namespace ScarletMansion.GamePatch.Components {
|
|||
audioSource.volume = maxVolume * (volume * 0.1f);
|
||||
}
|
||||
|
||||
public override void OnNetworkSpawn() {
|
||||
if (IsOwner) {
|
||||
ToggleOnOffSwitchClientRpc(UnityEngine.Random.value > 0.9f);
|
||||
ToggleVolumeSwitchClientRpc(UnityEngine.Random.Range(3, 7));
|
||||
ToggleSongSwitchClientRpc(UnityEngine.Random.Range(0, audioClips.Length));
|
||||
}
|
||||
}
|
||||
|
||||
void RotateTransformTo(Transform dial, ref float current, float towards){
|
||||
current = Mathf.Lerp(current, towards, Time.deltaTime * 2f);
|
||||
var v = new Vector3(current, 0f, 0f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue