Browse Source

Added repetitive bgm. Use headphones at own peril

develop
MrJDunn 3 years ago
parent
commit
d691820612
8 changed files with 43 additions and 23 deletions
  1. BIN
      Assets/Scenes/Testing Scenes/YeetScene.unity
  2. +0
    -9
      Assets/Scripts/Behaviours/IYeetable.cs
  3. +0
    -11
      Assets/Scripts/Behaviours/IYeetable.cs.meta
  4. +2
    -1
      Assets/Scripts/Behaviours/YeetController.cs
  5. +0
    -0
      Assets/Scripts/Behaviours/YeetHandle.cs
  6. +0
    -0
      Assets/Scripts/Behaviours/YeetHandle.cs.meta
  7. BIN
      Assets/World Assets/Audio/Music/1809121006_h'ns_pixiePolka_v1_JD.mp3
  8. +36
    -0
      Assets/World Assets/Audio/Music/1809121006_h'ns_pixiePolka_v1_JD.mp3.meta

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

size 18643

+ 0
- 9
Assets/Scripts/Behaviours/IYeetable.cs View File

@ -1,9 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public interface IYeetable
{
void Hold(GameObject child);
void Yeet();
}

+ 0
- 11
Assets/Scripts/Behaviours/IYeetable.cs.meta View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 2bbcd198578c95d40a2dd8f089364686
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

+ 2
- 1
Assets/Scripts/Behaviours/YeetController.cs View File

@ -8,6 +8,7 @@ public class YeetController : MonoBehaviour
public float yeetVelocity = 5f;
public float yeetDuration = 2f;
public float windupSpeed = 0.01f;
public enum YeetState { Unheld, Held, Yeeting };
public YeetState yeetState { get; private set; } = YeetState.Unheld;
@ -71,7 +72,7 @@ public class YeetController : MonoBehaviour
if(m_velocityWindup < yeetVelocity)
{
m_velocityWindup += 0.01f;
m_velocityWindup += windupSpeed;
}
Vector3 velocity = parent.transform.forward * m_velocityWindup + parent.transform.up * m_velocityWindup;

Assets/YeetHandle.cs → Assets/Scripts/Behaviours/YeetHandle.cs View File


Assets/YeetHandle.cs.meta → Assets/Scripts/Behaviours/YeetHandle.cs.meta View File


BIN
Assets/World Assets/Audio/Music/1809121006_h'ns_pixiePolka_v1_JD.mp3 (Stored with Git LFS) View File

size 1772712

+ 36
- 0
Assets/World Assets/Audio/Music/1809121006_h'ns_pixiePolka_v1_JD.mp3.meta View File

@ -0,0 +1,36 @@
fileFormatVersion: 2
guid: d8a1b725779faea4ba344c4c0f22bf21
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 0
quality: 1
conversionMode: 0
platformSettingOverrides:
4:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 3
quality: 1
conversionMode: 0
7:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

Loading…
Cancel
Save