Browse Source

Added music to menu

main
Joshua Reason 1 year ago
parent
commit
35e4e2dca0
3 changed files with 23 additions and 4 deletions
  1. BIN
      Assets/Scenes/Menu.unity
  2. +19
    -0
      Assets/spin.cs
  3. BIN
      ProjectSettings/EditorBuildSettings.asset

BIN
Assets/Scenes/Menu.unity (Stored with Git LFS) View File

size 698736

+ 19
- 0
Assets/spin.cs View File

@ -5,9 +5,28 @@ using UnityEngine;
public class spin : MonoBehaviour
{
public float turnFactor = 1f;
public Transform m_camera;
public float ZoomAmount = 10;
private void Update()
{
transform.rotation = Quaternion.Euler(0f, Time.time * turnFactor, 0f);
}
public void Zoom()
{
m_camera.transform.position += m_camera.forward * ZoomAmount;
}
public void UnZoom()
{
m_camera.transform.position -= m_camera.forward * ZoomAmount;
}
}

BIN
ProjectSettings/EditorBuildSettings.asset (Stored with Git LFS) View File

size 269

Loading…
Cancel
Save