├── .gitattributes ├── .gitignore ├── Assets ├── .gitignore ├── Audio.meta ├── Audio │ ├── Dialogue Voices.meta │ └── Dialogue Voices │ │ ├── Robot Boy.meta │ │ └── Robot Boy │ │ ├── CanYouPush.ogg │ │ ├── CanYouPush.ogg.meta │ │ ├── HelloIDontThink.ogg │ │ ├── HelloIDontThink.ogg.meta │ │ ├── Player.meta │ │ ├── Player │ │ ├── Hello there.ogg │ │ ├── Hello there.ogg.meta │ │ ├── WhatDoYouWant.ogg │ │ └── WhatDoYouWant.ogg.meta │ │ ├── PleaseHurry.ogg │ │ ├── PleaseHurry.ogg.meta │ │ ├── ThankYou.ogg │ │ └── ThankYou.ogg.meta ├── DialogueDemo.unity ├── DialogueDemo.unity.meta ├── Dialogues.meta ├── Dialogues │ ├── GlobalEvents.csv │ ├── GlobalEvents.csv.meta │ ├── Robot Boy.meta │ └── Robot Boy │ │ ├── RobotBoy.json │ │ ├── RobotBoy.json.meta │ │ ├── RobotBoyEvents.csv │ │ ├── RobotBoyEvents.csv.meta │ │ ├── RobotBoyResponses.json │ │ └── RobotBoyResponses.json.meta ├── Plugins.meta ├── Plugins │ ├── GitHub.meta │ └── GitHub │ │ ├── Editor.meta │ │ └── Editor │ │ ├── AsyncBridge.Net35.dll │ │ ├── AsyncBridge.Net35.dll.meta │ │ ├── GitHub.Api.dll │ │ ├── GitHub.Api.dll.mdb │ │ ├── GitHub.Api.dll.mdb.meta │ │ ├── GitHub.Api.dll.meta │ │ ├── GitHub.Logging.dll │ │ ├── GitHub.Logging.dll.mdb │ │ ├── GitHub.Logging.dll.mdb.meta │ │ ├── GitHub.Logging.dll.meta │ │ ├── GitHub.Unity.dll │ │ ├── GitHub.Unity.dll.mdb │ │ ├── GitHub.Unity.dll.mdb.meta │ │ ├── GitHub.Unity.dll.meta │ │ ├── ICSharpCode.SharpZipLib.dll │ │ ├── ICSharpCode.SharpZipLib.dll.meta │ │ ├── Mono.Posix.dll │ │ ├── Mono.Posix.dll.meta │ │ ├── QuickGuide.pdf │ │ ├── QuickGuide.pdf.meta │ │ ├── ReadOnlyCollectionsInterfaces.dll │ │ ├── ReadOnlyCollectionsInterfaces.dll.meta │ │ ├── System.Threading.dll │ │ ├── System.Threading.dll.meta │ │ ├── big-logo@2x.png │ │ ├── big-logo@2x.png.meta │ │ ├── credits.txt │ │ ├── credits.txt.meta │ │ ├── eula.txt │ │ ├── eula.txt.meta │ │ ├── libsfw.bundle │ │ ├── libsfw.bundle.meta │ │ ├── libsfw.so │ │ ├── libsfw.so.meta │ │ ├── sfw.net.dll │ │ ├── sfw.net.dll.meta │ │ ├── x64.meta │ │ ├── x64 │ │ ├── pthreadVC2.dll │ │ ├── pthreadVC2.dll.meta │ │ ├── sfw_x64.dll │ │ └── sfw_x64.dll.meta │ │ ├── x86.meta │ │ └── x86 │ │ ├── pthreadVC2.dll │ │ ├── pthreadVC2.dll.meta │ │ ├── sfw_x86.dll │ │ └── sfw_x86.dll.meta ├── Prefabs.meta ├── Prefabs │ ├── Canvas.prefab │ ├── Canvas.prefab.meta │ ├── NPC.prefab │ └── NPC.prefab.meta ├── Scripts.meta ├── Scripts │ ├── Dialogue.meta │ ├── Dialogue │ │ ├── DialogueManager.cs │ │ ├── DialogueManager.cs.meta │ │ ├── UIDialogue.cs │ │ └── UIDialogue.cs.meta │ ├── Environmental.meta │ ├── Environmental │ │ ├── DemoScene.cs │ │ └── DemoScene.cs.meta │ ├── lib.meta │ └── lib │ │ ├── SimpleJSON.cs │ │ ├── SimpleJSON.cs.meta │ │ ├── UnityMap.cs │ │ └── UnityMap.cs.meta ├── Sprites.meta ├── Sprites │ ├── ClickToTalk.png │ └── ClickToTalk.png.meta ├── Standard Assets.meta └── Standard Assets │ ├── 2D.meta │ ├── 2D │ ├── Animations.meta │ ├── Animations │ │ ├── RobotBoyCrouch.anim │ │ ├── RobotBoyCrouch.anim.meta │ │ ├── RobotBoyCrouchingWalk.anim │ │ ├── RobotBoyCrouchingWalk.anim.meta │ │ ├── RobotBoyFalling.anim │ │ ├── RobotBoyFalling.anim.meta │ │ ├── RobotBoyIdle.anim │ │ ├── RobotBoyIdle.anim.meta │ │ ├── RobotBoyJump01.anim │ │ ├── RobotBoyJump01.anim.meta │ │ ├── RobotBoyJump02.anim │ │ ├── RobotBoyJump02.anim.meta │ │ ├── RobotBoyJump03.anim │ │ ├── RobotBoyJump03.anim.meta │ │ ├── RobotBoyJump04.anim │ │ ├── RobotBoyJump04.anim.meta │ │ ├── RobotBoyJump05.anim │ │ ├── RobotBoyJump05.anim.meta │ │ ├── RobotBoyJump06.anim │ │ ├── RobotBoyJump06.anim.meta │ │ ├── RobotBoyJump07.anim │ │ ├── RobotBoyJump07.anim.meta │ │ ├── RobotBoyJump08.anim │ │ ├── RobotBoyJump08.anim.meta │ │ ├── RobotBoyJump09.anim │ │ ├── RobotBoyJump09.anim.meta │ │ ├── RobotBoyJump10.anim │ │ ├── RobotBoyJump10.anim.meta │ │ ├── RobotBoyJump11.anim │ │ ├── RobotBoyJump11.anim.meta │ │ ├── RobotBoyRun.anim │ │ ├── RobotBoyRun.anim.meta │ │ ├── RobotBoyWalk.anim │ │ └── RobotBoyWalk.anim.meta │ ├── Animator.meta │ ├── Animator │ │ ├── 2dCharacterAnimator.controller │ │ └── 2dCharacterAnimator.controller.meta │ ├── Materials.meta │ ├── Materials │ │ ├── SpriteLit.mat │ │ └── SpriteLit.mat.meta │ ├── PhysicsMaterials.meta │ ├── PhysicsMaterials │ │ ├── BouncyBox.physicsMaterial2D │ │ ├── BouncyBox.physicsMaterial2D.meta │ │ ├── Slippery.physicsMaterial2D │ │ ├── Slippery.physicsMaterial2D.meta │ │ ├── Sticky.physicsMaterial2D │ │ └── Sticky.physicsMaterial2D.meta │ ├── Prefabs.meta │ ├── Prefabs │ │ ├── CharacterRobotBoy.prefab │ │ ├── CharacterRobotBoy.prefab.meta │ │ ├── CollisionSlider.prefab │ │ ├── CollisionSlider.prefab.meta │ │ ├── CratePink.prefab │ │ ├── CratePink.prefab.meta │ │ ├── ExtentsLeft.prefab │ │ ├── ExtentsLeft.prefab.meta │ │ ├── ExtentsRight.prefab │ │ ├── ExtentsRight.prefab.meta │ │ ├── Killzone.prefab │ │ ├── Killzone.prefab.meta │ │ ├── Platform04x01.prefab │ │ ├── Platform04x01.prefab.meta │ │ ├── Platform08x01.prefab │ │ ├── Platform08x01.prefab.meta │ │ ├── Platform12x01.prefab │ │ ├── Platform12x01.prefab.meta │ │ ├── Platform16x01.prefab │ │ ├── Platform16x01.prefab.meta │ │ ├── Platform36x01.prefab │ │ ├── Platform36x01.prefab.meta │ │ ├── PlatformRamp.prefab │ │ └── PlatformRamp.prefab.meta │ ├── Scripts.meta │ ├── Scripts │ │ ├── Camera2DFollow.cs │ │ ├── Camera2DFollow.cs.meta │ │ ├── CameraFollow.cs │ │ ├── CameraFollow.cs.meta │ │ ├── Platformer2DUserControl.cs │ │ ├── Platformer2DUserControl.cs.meta │ │ ├── PlatformerCharacter2D.cs │ │ ├── PlatformerCharacter2D.cs.meta │ │ ├── Restarter.cs │ │ └── Restarter.cs.meta │ ├── Sprites.meta │ └── Sprites │ │ ├── BackgroundGreyGridSprite.png │ │ ├── BackgroundGreyGridSprite.png.meta │ │ ├── BackgroundNavyGridSprite.png │ │ ├── BackgroundNavyGridSprite.png.meta │ │ ├── CratePinkGridSprite.png │ │ ├── CratePinkGridSprite.png.meta │ │ ├── PlatformWhiteSprite.png │ │ ├── PlatformWhiteSprite.png.meta │ │ ├── RobotBoyCrouchSprite.png │ │ ├── RobotBoyCrouchSprite.png.meta │ │ ├── RobotBoyDeathSprite.png │ │ ├── RobotBoyDeathSprite.png.meta │ │ ├── RobotBoyIdleSprite.png │ │ ├── RobotBoyIdleSprite.png.meta │ │ ├── RobotBoyJumpSprite.png │ │ ├── RobotBoyJumpSprite.png.meta │ │ ├── RobotBoyRollSprite.png │ │ ├── RobotBoyRollSprite.png.meta │ │ ├── RobotBoyRunSprite.png │ │ ├── RobotBoyRunSprite.png.meta │ │ ├── RobotBoyWalkSprite.png │ │ └── RobotBoyWalkSprite.png.meta │ ├── CrossPlatformInput.meta │ ├── CrossPlatformInput │ ├── CrossPlatformInputGuidelines.txt │ ├── CrossPlatformInputGuidelines.txt.meta │ ├── Prefabs.meta │ ├── Prefabs │ │ ├── CarTiltControls.prefab │ │ ├── CarTiltControls.prefab.meta │ │ ├── DualTouchControls.prefab │ │ ├── DualTouchControls.prefab.meta │ │ ├── MobileAircraftControls.prefab │ │ ├── MobileAircraftControls.prefab.meta │ │ ├── MobileSingleStickControl.prefab │ │ ├── MobileSingleStickControl.prefab.meta │ │ ├── MobileTiltControlRig.prefab │ │ └── MobileTiltControlRig.prefab.meta │ ├── Scripts.meta │ ├── Scripts │ │ ├── AxisTouchButton.cs │ │ ├── AxisTouchButton.cs.meta │ │ ├── ButtonHandler.cs │ │ ├── ButtonHandler.cs.meta │ │ ├── CrossPlatformInputManager.cs │ │ ├── CrossPlatformInputManager.cs.meta │ │ ├── InputAxisScrollbar.cs │ │ ├── InputAxisScrollbar.cs.meta │ │ ├── Joystick.cs │ │ ├── Joystick.cs.meta │ │ ├── MobileControlRig.cs │ │ ├── MobileControlRig.cs.meta │ │ ├── PlatformSpecific.meta │ │ ├── PlatformSpecific │ │ │ ├── MobileInput.cs │ │ │ ├── MobileInput.cs.meta │ │ │ ├── StandaloneInput.cs │ │ │ └── StandaloneInput.cs.meta │ │ ├── TiltInput.cs │ │ ├── TiltInput.cs.meta │ │ ├── TouchPad.cs │ │ ├── TouchPad.cs.meta │ │ ├── VirtualInput.cs │ │ └── VirtualInput.cs.meta │ ├── Sprites.meta │ └── Sprites │ │ ├── ButtonAcceleratorOverSprite.png │ │ ├── ButtonAcceleratorOverSprite.png.meta │ │ ├── ButtonAcceleratorUpSprite.png │ │ ├── ButtonAcceleratorUpSprite.png.meta │ │ ├── ButtonArrowOverSprite.png │ │ ├── ButtonArrowOverSprite.png.meta │ │ ├── ButtonArrowUpSprite.png │ │ ├── ButtonArrowUpSprite.png.meta │ │ ├── ButtonBrakeOverSprite.png │ │ ├── ButtonBrakeOverSprite.png.meta │ │ ├── ButtonBrakeUpSprite.png │ │ ├── ButtonBrakeUpSprite.png.meta │ │ ├── ButtonCameraCycleUpSprite.png │ │ ├── ButtonCameraCycleUpSprite.png.meta │ │ ├── ButtonResetSprite.png │ │ ├── ButtonResetSprite.png.meta │ │ ├── ButtonSpacebarSprite.png │ │ ├── ButtonSpacebarSprite.png.meta │ │ ├── ButtonThumbstickOverSprite.png │ │ ├── ButtonThumbstickOverSprite.png.meta │ │ ├── ButtonThumbstickUpSprite.png │ │ ├── ButtonThumbstickUpSprite.png.meta │ │ ├── ButtonTimescaleFullUpSprite.png │ │ ├── ButtonTimescaleFullUpSprite.png.meta │ │ ├── ButtonTimescaleSlowUpSprite.png │ │ ├── ButtonTimescaleSlowUpSprite.png.meta │ │ ├── SliderBackgroundSprite.png │ │ ├── SliderBackgroundSprite.png.meta │ │ ├── SliderHandleSprite.png │ │ ├── SliderHandleSprite.png.meta │ │ ├── TouchpadSprite.png │ │ └── TouchpadSprite.png.meta │ ├── Editor.meta │ ├── Editor │ ├── CrossPlatformInput.meta │ └── CrossPlatformInput │ │ ├── CrossPlatformInputInitialize.cs │ │ └── CrossPlatformInputInitialize.cs.meta │ ├── Utility.meta │ └── Utility │ ├── ActivateTrigger.cs │ ├── ActivateTrigger.cs.meta │ ├── AlphaButtonClickMask.cs │ ├── AlphaButtonClickMask.cs.meta │ ├── AutoMobileShaderSwitch.cs │ ├── AutoMobileShaderSwitch.cs.meta │ ├── AutoMoveAndRotate.cs │ ├── AutoMoveAndRotate.cs.meta │ ├── CameraRefocus.cs │ ├── CameraRefocus.cs.meta │ ├── CurveControlledBob.cs │ ├── CurveControlledBob.cs.meta │ ├── DragRigidbody.cs │ ├── DragRigidbody.cs.meta │ ├── DynamicShadowSettings.cs │ ├── DynamicShadowSettings.cs.meta │ ├── EventSystemChecker.cs │ ├── EventSystemChecker.cs.meta │ ├── FOVKick.cs │ ├── FOVKick.cs.meta │ ├── FPSCounter.cs │ ├── FPSCounter.cs.meta │ ├── FollowTarget.cs │ ├── FollowTarget.cs.meta │ ├── ForcedReset.cs │ ├── ForcedReset.cs.meta │ ├── LerpControlledBob.cs │ ├── LerpControlledBob.cs.meta │ ├── ObjectResetter.cs │ ├── ObjectResetter.cs.meta │ ├── ParticleSystemDestroyer.cs │ ├── ParticleSystemDestroyer.cs.meta │ ├── PlatformSpecificContent.cs │ ├── PlatformSpecificContent.cs.meta │ ├── Prefabs.meta │ ├── Prefabs │ ├── FramerateCounter.prefab │ └── FramerateCounter.prefab.meta │ ├── SimpleActivatorMenu.cs │ ├── SimpleActivatorMenu.cs.meta │ ├── SimpleMouseRotator.cs │ ├── SimpleMouseRotator.cs.meta │ ├── SmoothFollow.cs │ ├── SmoothFollow.cs.meta │ ├── TimedObjectActivator.cs │ ├── TimedObjectActivator.cs.meta │ ├── TimedObjectDestructor.cs │ ├── TimedObjectDestructor.cs.meta │ ├── WaypointCircuit.cs │ ├── WaypointCircuit.cs.meta │ ├── WaypointProgressTracker.cs │ └── WaypointProgressTracker.cs.meta ├── Demo.mov ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset ├── README.md └── UnityPackageManager └── manifest.json /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | 3 | # Unity files 4 | *.meta -text -merge=unityamlmerge 5 | *.unity -text -merge=unityamlmerge 6 | *.asset -text -merge=unityamlmerge 7 | *.prefab -text -merge=unityamlmerge 8 | 9 | # Image formats 10 | *.psd filter=lfs diff=lfs merge=lfs -text 11 | *.jpg filter=lfs diff=lfs merge=lfs -text 12 | *.png filter=lfs diff=lfs merge=lfs -text 13 | *.gif filter=lfs diff=lfs merge=lfs -text 14 | *.bmp filter=lfs diff=lfs merge=lfs -text 15 | *.tga filter=lfs diff=lfs merge=lfs -text 16 | *.tiff filter=lfs diff=lfs merge=lfs -text 17 | *.iff filter=lfs diff=lfs merge=lfs -text 18 | *.pict filter=lfs diff=lfs merge=lfs -text 19 | *.dds filter=lfs diff=lfs merge=lfs -text 20 | *.xcf filter=lfs diff=lfs merge=lfs -text 21 | 22 | # Audio formats 23 | *.mp3 filter=lfs diff=lfs merge=lfs -text 24 | *.ogg filter=lfs diff=lfs merge=lfs -text 25 | *.wav filter=lfs diff=lfs merge=lfs -text 26 | *.aiff filter=lfs diff=lfs merge=lfs -text 27 | *.aif filter=lfs diff=lfs merge=lfs -text 28 | *.mod filter=lfs diff=lfs merge=lfs -text 29 | *.it filter=lfs diff=lfs merge=lfs -text 30 | *.s3m filter=lfs diff=lfs merge=lfs -text 31 | *.xm filter=lfs diff=lfs merge=lfs -text 32 | 33 | # Video formats 34 | *.mov filter=lfs diff=lfs merge=lfs -text 35 | *.avi filter=lfs diff=lfs merge=lfs -text 36 | *.asf filter=lfs diff=lfs merge=lfs -text 37 | *.mpg filter=lfs diff=lfs merge=lfs -text 38 | *.mpeg filter=lfs diff=lfs merge=lfs -text 39 | *.mp4 filter=lfs diff=lfs merge=lfs -text 40 | 41 | # 3D formats 42 | *.fbx filter=lfs diff=lfs merge=lfs -text 43 | *.obj filter=lfs diff=lfs merge=lfs -text 44 | *.max filter=lfs diff=lfs merge=lfs -text 45 | *.blend filter=lfs diff=lfs merge=lfs -text 46 | *.dae filter=lfs diff=lfs merge=lfs -text 47 | *.mb filter=lfs diff=lfs merge=lfs -text 48 | *.ma filter=lfs diff=lfs merge=lfs -text 49 | *.3ds filter=lfs diff=lfs merge=lfs -text 50 | *.dfx filter=lfs diff=lfs merge=lfs -text 51 | *.c4d filter=lfs diff=lfs merge=lfs -text 52 | *.lwo filter=lfs diff=lfs merge=lfs -text 53 | *.lwo2 filter=lfs diff=lfs merge=lfs -text 54 | *.abc filter=lfs diff=lfs merge=lfs -text 55 | *.3dm filter=lfs diff=lfs merge=lfs -text 56 | 57 | # Build 58 | *.dll filter=lfs diff=lfs merge=lfs -text 59 | *.pdb filter=lfs diff=lfs merge=lfs -text 60 | *.mdb filter=lfs diff=lfs merge=lfs -text 61 | 62 | # Packaging 63 | *.zip filter=lfs diff=lfs merge=lfs -text 64 | *.7z filter=lfs diff=lfs merge=lfs -text 65 | *.gz filter=lfs diff=lfs merge=lfs -text 66 | *.rar filter=lfs diff=lfs merge=lfs -text 67 | *.tar filter=lfs diff=lfs merge=lfs -text 68 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /[Ll]ibrary/ 2 | /[Tt]emp/ 3 | /[Oo]bj/ 4 | /[Bb]uild/ 5 | /[Bb]uilds/ 6 | 7 | /Assets/AssetStoreTools* 8 | 9 | # Visual Studio 2015 cache directory 10 | /.vs/ 11 | 12 | # Autogenerated VS/MD/Consulo solution and project files 13 | ExportedObj/ 14 | .consulo/ 15 | *.csproj 16 | *.unityproj 17 | *.sln 18 | *.suo 19 | *.tmp 20 | *.user 21 | *.userprefs 22 | *.pidb 23 | *.booproj 24 | *.svd 25 | *.pdb 26 | 27 | 28 | # Unity3D generated meta files 29 | *.pidb.meta 30 | 31 | # Unity3D Generated File On Crash Reports 32 | sysinfo.txt 33 | 34 | # Builds 35 | *.apk 36 | *.unitypackage -------------------------------------------------------------------------------- /Assets/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgbakke/Unity-Dialogue-Example/99da73701800c55193133b4362cbf9f07c361511/Assets/.gitignore -------------------------------------------------------------------------------- /Assets/Audio.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c891c0a0bb6124762acf0e342e9edf6c 3 | folderAsset: yes 4 | timeCreated: 1534562619 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Audio/Dialogue Voices.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ff449e2b296ca48fd989eed68b12f731 3 | folderAsset: yes 4 | timeCreated: 1534722193 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Audio/Dialogue Voices/Robot Boy.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b33c7c5706024635b04ace828674f51 3 | folderAsset: yes 4 | timeCreated: 1534788751 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Audio/Dialogue Voices/Robot Boy/CanYouPush.ogg: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:244858c0c4416ae4b6c920fe4cef3dc50fb4031dccd9f819cf142bd70e72c835 3 | size 22627 4 | -------------------------------------------------------------------------------- /Assets/Audio/Dialogue Voices/Robot Boy/CanYouPush.ogg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e2633e208c444e1fab61367b3672e27 3 | timeCreated: 1534788777 4 | licenseType: Free 5 | AudioImporter: 6 | externalObjects: {} 7 | serializedVersion: 6 8 | defaultSettings: 9 | loadType: 0 10 | sampleRateSetting: 0 11 | sampleRateOverride: 44100 12 | compressionFormat: 1 13 | quality: 1 14 | conversionMode: 0 15 | platformSettingOverrides: {} 16 | forceToMono: 0 17 | normalize: 1 18 | preloadAudioData: 1 19 | loadInBackground: 0 20 | ambisonic: 0 21 | 3D: 1 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Assets/Audio/Dialogue Voices/Robot Boy/HelloIDontThink.ogg: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:573e83b337625405242c1667b53910d929cb6945e51d79eb5e2549db9828f096 3 | size 24673 4 | -------------------------------------------------------------------------------- /Assets/Audio/Dialogue Voices/Robot Boy/HelloIDontThink.ogg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dfd12eb02996146cebd3a05eb57be815 3 | timeCreated: 1534739312 4 | licenseType: Free 5 | AudioImporter: 6 | externalObjects: {} 7 | serializedVersion: 6 8 | defaultSettings: 9 | loadType: 0 10 | sampleRateSetting: 0 11 | sampleRateOverride: 44100 12 | compressionFormat: 1 13 | quality: 1 14 | conversionMode: 0 15 | platformSettingOverrides: {} 16 | forceToMono: 0 17 | normalize: 1 18 | preloadAudioData: 1 19 | loadInBackground: 0 20 | ambisonic: 0 21 | 3D: 1 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Assets/Audio/Dialogue Voices/Robot Boy/Player.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d97d0d6baafcc490ebbf8ba3f05b489c 3 | folderAsset: yes 4 | timeCreated: 1534813105 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Audio/Dialogue Voices/Robot Boy/Player/Hello there.ogg: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:4cf098a8be49e33051fff5dffd4560458d49e72007068f0a199aafe48acd9455 3 | size 10330 4 | -------------------------------------------------------------------------------- /Assets/Audio/Dialogue Voices/Robot Boy/Player/Hello there.ogg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 49f1e5033db284529be11dbff54737d7 3 | timeCreated: 1534813113 4 | licenseType: Free 5 | AudioImporter: 6 | externalObjects: {} 7 | serializedVersion: 6 8 | defaultSettings: 9 | loadType: 0 10 | sampleRateSetting: 0 11 | sampleRateOverride: 44100 12 | compressionFormat: 1 13 | quality: 1 14 | conversionMode: 0 15 | platformSettingOverrides: {} 16 | forceToMono: 0 17 | normalize: 1 18 | preloadAudioData: 1 19 | loadInBackground: 0 20 | ambisonic: 0 21 | 3D: 1 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Assets/Audio/Dialogue Voices/Robot Boy/Player/WhatDoYouWant.ogg: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:4199f9982c2b25a196e2ef0e3900dcf61c4dc6209cb1375933f240464b1ecb32 3 | size 13560 4 | -------------------------------------------------------------------------------- /Assets/Audio/Dialogue Voices/Robot Boy/Player/WhatDoYouWant.ogg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b9321c7d13354cf4853860044427947 3 | timeCreated: 1534813115 4 | licenseType: Free 5 | AudioImporter: 6 | externalObjects: {} 7 | serializedVersion: 6 8 | defaultSettings: 9 | loadType: 0 10 | sampleRateSetting: 0 11 | sampleRateOverride: 44100 12 | compressionFormat: 1 13 | quality: 1 14 | conversionMode: 0 15 | platformSettingOverrides: {} 16 | forceToMono: 0 17 | normalize: 1 18 | preloadAudioData: 1 19 | loadInBackground: 0 20 | ambisonic: 0 21 | 3D: 1 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Assets/Audio/Dialogue Voices/Robot Boy/PleaseHurry.ogg: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:29c28565540de30886637e8dbb2958eb85cfdb8fa504342951adb20c1acd67a0 3 | size 11210 4 | -------------------------------------------------------------------------------- /Assets/Audio/Dialogue Voices/Robot Boy/PleaseHurry.ogg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cb6ad640e986442d978d627f1d17beb 3 | timeCreated: 1534890014 4 | licenseType: Free 5 | AudioImporter: 6 | externalObjects: {} 7 | serializedVersion: 6 8 | defaultSettings: 9 | loadType: 0 10 | sampleRateSetting: 0 11 | sampleRateOverride: 44100 12 | compressionFormat: 1 13 | quality: 1 14 | conversionMode: 0 15 | platformSettingOverrides: {} 16 | forceToMono: 0 17 | normalize: 1 18 | preloadAudioData: 1 19 | loadInBackground: 0 20 | ambisonic: 0 21 | 3D: 1 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Assets/Audio/Dialogue Voices/Robot Boy/ThankYou.ogg: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:0ab1909b7c9f8fad98c5733da330c6f0c384a0f17024cb2c62096ab7e4c37c7f 3 | size 14301 4 | -------------------------------------------------------------------------------- /Assets/Audio/Dialogue Voices/Robot Boy/ThankYou.ogg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9ff950ac28c1474d9122ef65d084531 3 | timeCreated: 1534908433 4 | licenseType: Free 5 | AudioImporter: 6 | externalObjects: {} 7 | serializedVersion: 6 8 | defaultSettings: 9 | loadType: 0 10 | sampleRateSetting: 0 11 | sampleRateOverride: 44100 12 | compressionFormat: 1 13 | quality: 1 14 | conversionMode: 0 15 | platformSettingOverrides: {} 16 | forceToMono: 0 17 | normalize: 1 18 | preloadAudioData: 1 19 | loadInBackground: 0 20 | ambisonic: 0 21 | 3D: 1 22 | userData: 23 | assetBundleName: 24 | assetBundleVariant: 25 | -------------------------------------------------------------------------------- /Assets/DialogueDemo.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3eb13c493176a4fcb988c4e947cb73af 3 | timeCreated: 1534192437 4 | licenseType: Free 5 | DefaultImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Dialogues.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13b5c48b800f84f6aa7b2d179f8efbc1 3 | folderAsset: yes 4 | timeCreated: 1534297787 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Dialogues/GlobalEvents.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgbakke/Unity-Dialogue-Example/99da73701800c55193133b4362cbf9f07c361511/Assets/Dialogues/GlobalEvents.csv -------------------------------------------------------------------------------- /Assets/Dialogues/GlobalEvents.csv.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15533b5e41b98454e9d211a929306429 3 | timeCreated: 1534889898 4 | licenseType: Free 5 | TextScriptImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Dialogues/Robot Boy.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd02076d74100454da0cc570ccbe82e9 3 | folderAsset: yes 4 | timeCreated: 1534812618 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Dialogues/Robot Boy/RobotBoy.json: -------------------------------------------------------------------------------- 1 | { 2 | 3 | "1" : { 4 | "text": "Hello, I don\'t think we\'ve met before", 5 | "responseIds": ["P1", "P2"] 6 | }, 7 | 8 | "2" : { 9 | "text": "Can you push that box over to me?", 10 | "responseIds": [], 11 | "applyCondition": ["Box Quest", false] 12 | } 13 | 14 | "3" : { 15 | "text": "Please hurry.", 16 | "condition" : "Box Quest", 17 | "responseIds": [], 18 | "alternateLine" : "1" 19 | } 20 | 21 | "4" : { 22 | "text": "Thank you for your help.", 23 | "condition" : "Box Given", 24 | "responseIds": [], 25 | "alternateLine" : "3" 26 | } 27 | } -------------------------------------------------------------------------------- /Assets/Dialogues/Robot Boy/RobotBoy.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99ccec66eefb04cf9b9cc29d62000cb6 3 | timeCreated: 1534297937 4 | licenseType: Free 5 | TextScriptImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Dialogues/Robot Boy/RobotBoyEvents.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgbakke/Unity-Dialogue-Example/99da73701800c55193133b4362cbf9f07c361511/Assets/Dialogues/Robot Boy/RobotBoyEvents.csv -------------------------------------------------------------------------------- /Assets/Dialogues/Robot Boy/RobotBoyEvents.csv.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df092a22592854ee29b2ae98101fbf8d 3 | timeCreated: 1534889810 4 | licenseType: Free 5 | TextScriptImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Dialogues/Robot Boy/RobotBoyResponses.json: -------------------------------------------------------------------------------- 1 | { 2 | 3 | "P1" : { 4 | "option": "Hello there", 5 | "text" : "Hello there", 6 | "responseIds": ["2"] 7 | }, 8 | 9 | "P2" : { 10 | "option": "What do you want?", 11 | "text" : "What do you want?", 12 | "responseIds": ["2"] 13 | } 14 | 15 | } -------------------------------------------------------------------------------- /Assets/Dialogues/Robot Boy/RobotBoyResponses.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c9028cf494f4443fbb63771480efe1fb 3 | timeCreated: 1534297989 4 | licenseType: Free 5 | TextScriptImporter: 6 | externalObjects: {} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 720712be6e31c444f88f57bb85bf5fa5 3 | folderAsset: yes 4 | timeCreated: 1504268238 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 18e096a98c2704c40a818dd1214cd179 3 | folderAsset: yes 4 | timeCreated: 1503666358 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cad92998c5182496e8b989b406d9f156 3 | folderAsset: yes 4 | timeCreated: 1503666365 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/AsyncBridge.Net35.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:0f61d9c0550c3a1e36e6eaa9bebbc3b5ca701c4e960dc2a92746df792d392140 3 | size 26112 4 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/AsyncBridge.Net35.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d516f2a1bec6a9645a084ef8c9237132 3 | timeCreated: 1491391262 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: {} 15 | Editor: 16 | enabled: 1 17 | settings: 18 | DefaultValueInitialized: true 19 | WindowsStoreApps: 20 | enabled: 0 21 | settings: 22 | CPU: AnyCPU 23 | userData: 24 | assetBundleName: 25 | assetBundleVariant: 26 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/GitHub.Api.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:1dbf3627409f6ed67dd2ce1f0d5a2fbe8fbcf56d1c43cc220e94dcda861fe7bd 3 | size 1787904 4 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/GitHub.Api.dll.mdb: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:b067a3436eb0534c6ce022ad2ac4b50b391c4c842891b2a8f5afc0989a7b3687 3 | size 143829 4 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/GitHub.Api.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5c83d14802e712408f23409f3c59e26 3 | timeCreated: 1493304320 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/GitHub.Api.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c743ae24ee231884887054d20ccdd0ae 3 | timeCreated: 1491391261 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: {} 15 | Editor: 16 | enabled: 1 17 | settings: 18 | DefaultValueInitialized: true 19 | WindowsStoreApps: 20 | enabled: 0 21 | settings: 22 | CPU: AnyCPU 23 | userData: 24 | assetBundleName: 25 | assetBundleVariant: 26 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/GitHub.Logging.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:7d1e7f54c24f40949c0416b96f67086d8750268a6e9211c96f9b142194ebf6d2 3 | size 11776 4 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/GitHub.Logging.dll.mdb: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:0800dec3a1df2c697f35c2224f4b577c46c57074acc8ab546a489e63d33e546d 3 | size 4889 4 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/GitHub.Logging.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23c8bee69b591054094d32918f98facd 3 | timeCreated: 1493304320 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/GitHub.Logging.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15ca2bebf173f2d4484686a03a45b56d 3 | timeCreated: 1491391259 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: {} 15 | Editor: 16 | enabled: 1 17 | settings: 18 | DefaultValueInitialized: true 19 | WindowsStoreApps: 20 | enabled: 0 21 | settings: 22 | CPU: AnyCPU 23 | userData: 24 | assetBundleName: 25 | assetBundleVariant: 26 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/GitHub.Unity.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:a3b655ed11f508ef27f43e5b1465f610dc9140f192988f83d5ff2e4cc1fa64ec 3 | size 291328 4 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/GitHub.Unity.dll.mdb: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:21cfc050838dbe0d22fb109403167d4073c9032f5d39f2cafa47dfcecc3554fc 3 | size 53556 4 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/GitHub.Unity.dll.mdb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2590b98e5cafc4e32b61170d7b917ee6 3 | timeCreated: 1527097373 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/GitHub.Unity.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68c7e4565cde54155bb78d8e935f1dd4 3 | timeCreated: 1527097377 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/ICSharpCode.SharpZipLib.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:fbace48694fbfff69ff99ff7aefbde67965f7723092df9c13ff537d2a319f410 3 | size 192000 4 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/ICSharpCode.SharpZipLib.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ecfb28d906a32914d956497c8d3b3395 3 | timeCreated: 1493304328 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: {} 15 | Editor: 16 | enabled: 1 17 | settings: 18 | DefaultValueInitialized: true 19 | WindowsStoreApps: 20 | enabled: 0 21 | settings: 22 | CPU: AnyCPU 23 | userData: 24 | assetBundleName: 25 | assetBundleVariant: 26 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/Mono.Posix.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:bda42c2c2c6d83a5c840d5262bfb1ae0e24e3c1778c96d5ea1ff96a1bb244f70 3 | size 184320 4 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/Mono.Posix.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ddb8611e748af425a82a497ac5a98c0c 3 | timeCreated: 1503427590 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | data: 19 | first: 20 | Editor: Editor 21 | second: 22 | enabled: 1 23 | settings: 24 | DefaultValueInitialized: true 25 | data: 26 | first: 27 | Windows Store Apps: WindowsStoreApps 28 | second: 29 | enabled: 0 30 | settings: 31 | CPU: AnyCPU 32 | userData: 33 | assetBundleName: 34 | assetBundleVariant: 35 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/QuickGuide.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgbakke/Unity-Dialogue-Example/99da73701800c55193133b4362cbf9f07c361511/Assets/Plugins/GitHub/Editor/QuickGuide.pdf -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/QuickGuide.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d601ecb6855bb432bae2aa49d8fd82e8 3 | timeCreated: 1526676893 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/ReadOnlyCollectionsInterfaces.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:64803681966f009feaab1f02278ac2a38683fc99e88b4247d54d0534f1429b55 3 | size 5632 4 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/ReadOnlyCollectionsInterfaces.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48c22d5d7479fcb49ab3be0cdd2ccec0 3 | timeCreated: 1491391260 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: {} 15 | Editor: 16 | enabled: 1 17 | settings: 18 | DefaultValueInitialized: true 19 | WindowsStoreApps: 20 | enabled: 0 21 | settings: 22 | CPU: AnyCPU 23 | userData: 24 | assetBundleName: 25 | assetBundleVariant: 26 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/System.Threading.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:25a3ec89ffc468c53a44a90ae99c23e1bcff9e5901be74033b4ce794a3202395 3 | size 382464 4 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/System.Threading.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 790749ba7e4b18141953e39cb13f1b79 3 | timeCreated: 1491392717 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: {} 15 | Editor: 16 | enabled: 1 17 | settings: 18 | DefaultValueInitialized: true 19 | WindowsStoreApps: 20 | enabled: 0 21 | settings: 22 | CPU: AnyCPU 23 | userData: 24 | assetBundleName: 25 | assetBundleVariant: 26 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/big-logo@2x.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:e986d8a21f6f621e89885d0e4e28a9c6171e02f2c095fbeb075e22d9b0f40f74 3 | size 9961 4 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/big-logo@2x.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f81094832d834c64d93b198cb16b6a3e 3 | timeCreated: 1491392813 4 | licenseType: Pro 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 4 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | sRGBTexture: 1 12 | linearTexture: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 6 25 | cubemapConvolution: 0 26 | seamlessCubemap: 0 27 | textureFormat: 1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | compressionQuality: 50 37 | spriteMode: 0 38 | spriteExtrude: 1 39 | spriteMeshType: 1 40 | alignment: 0 41 | spritePivot: {x: 0.5, y: 0.5} 42 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 43 | spritePixelsToUnits: 100 44 | alphaUsage: 1 45 | alphaIsTransparency: 1 46 | spriteTessellationDetail: -1 47 | textureType: 0 48 | textureShape: 1 49 | maxTextureSizeSet: 0 50 | compressionQualitySet: 0 51 | textureFormatSet: 0 52 | platformSettings: 53 | - buildTarget: DefaultTexturePlatform 54 | maxTextureSize: 2048 55 | textureFormat: -1 56 | textureCompression: 1 57 | compressionQuality: 50 58 | crunchedCompression: 0 59 | allowsAlphaSplitting: 0 60 | overridden: 0 61 | - buildTarget: Standalone 62 | maxTextureSize: 2048 63 | textureFormat: -1 64 | textureCompression: 1 65 | compressionQuality: 50 66 | crunchedCompression: 0 67 | allowsAlphaSplitting: 0 68 | overridden: 0 69 | - buildTarget: iPhone 70 | maxTextureSize: 2048 71 | textureFormat: -1 72 | textureCompression: 1 73 | compressionQuality: 50 74 | crunchedCompression: 0 75 | allowsAlphaSplitting: 0 76 | overridden: 0 77 | - buildTarget: tvOS 78 | maxTextureSize: 2048 79 | textureFormat: -1 80 | textureCompression: 1 81 | compressionQuality: 50 82 | crunchedCompression: 0 83 | allowsAlphaSplitting: 0 84 | overridden: 0 85 | - buildTarget: Android 86 | maxTextureSize: 2048 87 | textureFormat: -1 88 | textureCompression: 1 89 | compressionQuality: 50 90 | crunchedCompression: 0 91 | allowsAlphaSplitting: 0 92 | overridden: 0 93 | - buildTarget: WebGL 94 | maxTextureSize: 2048 95 | textureFormat: -1 96 | textureCompression: 1 97 | compressionQuality: 50 98 | crunchedCompression: 0 99 | allowsAlphaSplitting: 0 100 | overridden: 0 101 | spriteSheet: 102 | serializedVersion: 2 103 | sprites: [] 104 | outline: [] 105 | spritePackingTag: 106 | userData: 107 | assetBundleName: 108 | assetBundleVariant: 109 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/credits.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgbakke/Unity-Dialogue-Example/99da73701800c55193133b4362cbf9f07c361511/Assets/Plugins/GitHub/Editor/credits.txt -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/credits.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0188ec438976e5849b40a2c1ce5f20f9 3 | timeCreated: 1491603973 4 | licenseType: Free 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/eula.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 136dc24f151211d438acee17aff4e934 3 | timeCreated: 1491603974 4 | licenseType: Free 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/libsfw.bundle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgbakke/Unity-Dialogue-Example/99da73701800c55193133b4362cbf9f07c361511/Assets/Plugins/GitHub/Editor/libsfw.bundle -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/libsfw.bundle.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 636d33ae594884e7d80b569f429d245d 3 | timeCreated: 1503667182 4 | licenseType: Free 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | '': Any 15 | second: 16 | enabled: 0 17 | settings: 18 | Exclude Editor: 0 19 | Exclude Linux: 1 20 | Exclude Linux64: 1 21 | Exclude LinuxUniversal: 1 22 | Exclude OSXIntel: 1 23 | Exclude OSXIntel64: 1 24 | Exclude OSXUniversal: 1 25 | Exclude Win: 1 26 | Exclude Win64: 1 27 | data: 28 | first: 29 | '': Editor 30 | second: 31 | enabled: 0 32 | settings: 33 | CPU: AnyCPU 34 | OS: OSX 35 | data: 36 | first: 37 | Any: 38 | second: 39 | enabled: 0 40 | settings: {} 41 | data: 42 | first: 43 | Editor: Editor 44 | second: 45 | enabled: 1 46 | settings: 47 | DefaultValueInitialized: true 48 | data: 49 | first: 50 | Facebook: Win 51 | second: 52 | enabled: 0 53 | settings: 54 | CPU: AnyCPU 55 | data: 56 | first: 57 | Facebook: Win64 58 | second: 59 | enabled: 0 60 | settings: 61 | CPU: AnyCPU 62 | data: 63 | first: 64 | Standalone: Linux 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: x86 69 | data: 70 | first: 71 | Standalone: Linux64 72 | second: 73 | enabled: 0 74 | settings: 75 | CPU: x86_64 76 | data: 77 | first: 78 | Standalone: OSXIntel 79 | second: 80 | enabled: 0 81 | settings: 82 | CPU: AnyCPU 83 | data: 84 | first: 85 | Standalone: OSXIntel64 86 | second: 87 | enabled: 0 88 | settings: 89 | CPU: AnyCPU 90 | data: 91 | first: 92 | Standalone: Win 93 | second: 94 | enabled: 0 95 | settings: 96 | CPU: AnyCPU 97 | data: 98 | first: 99 | Standalone: Win64 100 | second: 101 | enabled: 0 102 | settings: 103 | CPU: AnyCPU 104 | userData: 105 | assetBundleName: 106 | assetBundleVariant: 107 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/libsfw.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgbakke/Unity-Dialogue-Example/99da73701800c55193133b4362cbf9f07c361511/Assets/Plugins/GitHub/Editor/libsfw.so -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/libsfw.so.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 21206c65839f84d0e9ae14bc1fdc68db 3 | timeCreated: 1503931807 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 2 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | data: 13 | first: 14 | '': Any 15 | second: 16 | enabled: 0 17 | settings: 18 | Exclude Editor: 0 19 | Exclude Linux: 1 20 | Exclude Linux64: 1 21 | Exclude LinuxUniversal: 1 22 | Exclude OSXIntel: 1 23 | Exclude OSXIntel64: 1 24 | Exclude OSXUniversal: 1 25 | Exclude Win: 1 26 | Exclude Win64: 1 27 | data: 28 | first: 29 | '': Editor 30 | second: 31 | enabled: 0 32 | settings: 33 | CPU: AnyCPU 34 | OS: Linux 35 | data: 36 | first: 37 | Any: 38 | second: 39 | enabled: 0 40 | settings: {} 41 | data: 42 | first: 43 | Editor: Editor 44 | second: 45 | enabled: 1 46 | settings: 47 | DefaultValueInitialized: true 48 | data: 49 | first: 50 | Facebook: Win 51 | second: 52 | enabled: 0 53 | settings: 54 | CPU: AnyCPU 55 | data: 56 | first: 57 | Facebook: Win64 58 | second: 59 | enabled: 0 60 | settings: 61 | CPU: AnyCPU 62 | data: 63 | first: 64 | Standalone: Linux 65 | second: 66 | enabled: 0 67 | settings: 68 | CPU: x86 69 | data: 70 | first: 71 | Standalone: Linux64 72 | second: 73 | enabled: 0 74 | settings: 75 | CPU: x86_64 76 | data: 77 | first: 78 | Standalone: OSXIntel 79 | second: 80 | enabled: 0 81 | settings: 82 | CPU: AnyCPU 83 | data: 84 | first: 85 | Standalone: OSXIntel64 86 | second: 87 | enabled: 0 88 | settings: 89 | CPU: AnyCPU 90 | data: 91 | first: 92 | Standalone: Win 93 | second: 94 | enabled: 0 95 | settings: 96 | CPU: AnyCPU 97 | data: 98 | first: 99 | Standalone: Win64 100 | second: 101 | enabled: 0 102 | settings: 103 | CPU: AnyCPU 104 | userData: 105 | assetBundleName: 106 | assetBundleVariant: 107 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/sfw.net.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:21feeaa73e42bf03e86525bc5e1b954f4b9a2f16eed58a87c69e576509231480 3 | size 7168 4 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/sfw.net.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9fc9b08ecd899944adf9860b4abd6b6 3 | timeCreated: 1491392718 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | isOverridable: 0 11 | platformData: 12 | Any: 13 | enabled: 0 14 | settings: {} 15 | Editor: 16 | enabled: 1 17 | settings: 18 | DefaultValueInitialized: true 19 | WindowsStoreApps: 20 | enabled: 0 21 | settings: 22 | CPU: AnyCPU 23 | userData: 24 | assetBundleName: 25 | assetBundleVariant: 26 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/x64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a0ded7adcc817ce489fec07977f16d13 3 | folderAsset: yes 4 | timeCreated: 1493304320 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/x64/pthreadVC2.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:0e6af724609ef6846982ef717013426c359c455fff324e906d8d55c8bb88d16e 3 | size 82944 4 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/x64/sfw_x64.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:4f8d586e00ddbe3cfa0cd2446bdd416a65e6c12ef31e7f451af14867b880c0dc 3 | size 182784 4 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99b48d4d4f6a66340ab06bd487d70a45 3 | folderAsset: yes 4 | timeCreated: 1493304320 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/x86/pthreadVC2.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:bac4472990c1dc2f037019791bd18888e78a3ae86605f3aae86f812a4d7d4f60 3 | size 55808 4 | -------------------------------------------------------------------------------- /Assets/Plugins/GitHub/Editor/x86/sfw_x86.dll: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:843682e312df272a4222e2ba85f4feebfb0195524f101ef9f636f56ae0e0af21 3 | size 179200 4 | -------------------------------------------------------------------------------- /Assets/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9cd0c5cbb7dd947279bd1edaa54d0eb5 3 | folderAsset: yes 4 | timeCreated: 1534369897 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Prefabs/Canvas.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 207994c774dab475385a2bfecac2f0e9 3 | timeCreated: 1534872952 4 | licenseType: Free 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 100100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Prefabs/NPC.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1788b9a8fc8f04ef5a48c3711f171e9a 3 | timeCreated: 1534297622 4 | licenseType: Free 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 100100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe9767c61a7d8454d82c13d86d18765e 3 | folderAsset: yes 4 | timeCreated: 1534197914 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Scripts/Dialogue.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0d39bf2007bd4d0da9b6bc0b877b6a1 3 | folderAsset: yes 4 | timeCreated: 1534298022 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Scripts/Dialogue/DialogueManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3dd3da113f0d6414abb202f600472fea 3 | timeCreated: 1534297597 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/Dialogue/UIDialogue.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | 6 | public class UIDialogue : MonoBehaviour { 7 | 8 | private AudioSource audioPlayer; 9 | private GameObject dialogueChoices; 10 | private DialogueManager dialogueManager; 11 | public bool subtitlesEnabled = true; 12 | private Text subtitle; 13 | private string[] storedIds; 14 | 15 | public GameObject subtitleObject; 16 | public List buttons; 17 | 18 | // Use this for initialization 19 | void Start () { 20 | subtitle = subtitleObject.GetComponent (); 21 | hideSubtitle (); 22 | audioPlayer = GetComponent (); 23 | dialogueChoices = GameObject.Find ("Dialogue Choices"); 24 | hideDialogue (); 25 | } 26 | 27 | private void hideDialogue(){ 28 | buttons.ForEach (btn => btn.SetActive(false) ); 29 | } 30 | 31 | public void hideSubtitle(){ 32 | subtitle.enabled = false; 33 | } 34 | 35 | public void displaySubtitle(string text){ 36 | subtitle.enabled = subtitlesEnabled; 37 | subtitle.text = text; 38 | } 39 | 40 | public void showOptions(string[] options, string[] ids, DialogueManager caller){ 41 | hideSubtitle (); 42 | dialogueManager = caller; // Save this so we know which dialogueManager to go back to 43 | storedIds = ids; // Save the IDs here so we know which dialogue ID to call based on option 44 | 45 | for (int i = 0; i < options.Length; i++) { 46 | buttons [i].SetActive (true); 47 | buttons [i].transform.Find ("Text").GetComponent ().text = options[i]; 48 | } 49 | } 50 | 51 | public void selectOption(int option){ 52 | hideDialogue (); 53 | StartCoroutine (dialogueManager.say(storedIds[option], true)); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Assets/Scripts/Dialogue/UIDialogue.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03c7b6fad7a2f4925be81825a9a3476b 3 | timeCreated: 1534559966 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/Environmental.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68fd14b04955447978bc0dc474fd4dde 3 | folderAsset: yes 4 | timeCreated: 1534906591 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Scripts/Environmental/DemoScene.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class DemoScene : MonoBehaviour { 6 | 7 | private GameObject npc; 8 | private GameObject crate; 9 | private bool questCompleted = false; 10 | 11 | // Use this for initialization 12 | void Start () { 13 | npc = GameObject.Find ("NPC"); 14 | crate = GameObject.Find ("CratePink"); 15 | } 16 | 17 | // Update is called once per frame 18 | void Update () { 19 | if (!questCompleted && Vector2.Distance (npc.transform.position, crate.transform.position) < 2) { 20 | questCompleted = true; 21 | npc.GetComponent ().recordEvent ("Box Given", false); 22 | npc.GetComponent ().initiateDefaultConversation (); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Assets/Scripts/Environmental/DemoScene.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7c4988a6e1eaf491fad1815275ae68db 3 | timeCreated: 1534906625 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/lib.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bcfc2cda9e195451987bc1aac9c8709d 3 | folderAsset: yes 4 | timeCreated: 1534302337 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Scripts/lib/SimpleJSON.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2bdcb31d2ea264aa8b00a43d32e81c95 3 | timeCreated: 1534302530 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/lib/UnityMap.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Utils { 4 | [Serializable] 5 | public struct UnityMap{ 6 | public K key; 7 | public V value; 8 | 9 | public UnityMap(K k, V v){ 10 | key = k; 11 | value = v; 12 | } 13 | } 14 | 15 | } 16 | 17 | -------------------------------------------------------------------------------- /Assets/Scripts/lib/UnityMap.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1bed8e52b38c240c583b42bbee7b8698 3 | timeCreated: 1534786996 4 | licenseType: Free 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Sprites.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 418929462e42d4cfc882d8d3a99af248 3 | folderAsset: yes 4 | timeCreated: 1534371752 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Sprites/ClickToTalk.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:dba417212392252ab77e6d84223bda9b063bb04156797063930da5a469288f2a 3 | size 11862 4 | -------------------------------------------------------------------------------- /Assets/Sprites/ClickToTalk.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 81c27387572ac48f69fa031b456f9a47 3 | timeCreated: 1534372033 4 | licenseType: Free 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | externalObjects: {} 8 | serializedVersion: 4 9 | mipmaps: 10 | mipMapMode: 0 11 | enableMipMap: 0 12 | sRGBTexture: 1 13 | linearTexture: 0 14 | fadeOut: 0 15 | borderMipMap: 0 16 | mipMapsPreserveCoverage: 0 17 | alphaTestReferenceValue: 0.5 18 | mipMapFadeDistanceStart: 1 19 | mipMapFadeDistanceEnd: 3 20 | bumpmap: 21 | convertToNormalMap: 0 22 | externalNormalMap: 0 23 | heightScale: 0.25 24 | normalMapFilter: 0 25 | isReadable: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -1 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: 1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 1 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 49 | spritePixelsToUnits: 100 50 | alphaUsage: 1 51 | alphaIsTransparency: 1 52 | spriteTessellationDetail: -1 53 | textureType: 8 54 | textureShape: 1 55 | maxTextureSizeSet: 0 56 | compressionQualitySet: 0 57 | textureFormatSet: 0 58 | platformSettings: 59 | - buildTarget: DefaultTexturePlatform 60 | maxTextureSize: 2048 61 | resizeAlgorithm: 0 62 | textureFormat: -1 63 | textureCompression: 1 64 | compressionQuality: 50 65 | crunchedCompression: 0 66 | allowsAlphaSplitting: 0 67 | overridden: 0 68 | androidETC2FallbackOverride: 0 69 | spriteSheet: 70 | serializedVersion: 2 71 | sprites: [] 72 | outline: [] 73 | physicsShape: [] 74 | spritePackingTag: 75 | userData: 76 | assetBundleName: 77 | assetBundleVariant: 78 | -------------------------------------------------------------------------------- /Assets/Standard Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e077c7172d97044ca8fafcee5f4198d7 3 | folderAsset: yes 4 | timeCreated: 1534192078 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27dbec7630294d64c9ab91261656cbd4 3 | folderAsset: yes 4 | timeCreated: 1436977288 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d8134e4dd9a11c6468abfb1683315eab 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyCrouch.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19bf9c5d4c01a864baffb3ac0dc54a9b 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyCrouchingWalk.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d139426e5e4404f31a1a8d663355003e 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyFalling.anim: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!74 &7400000 4 | AnimationClip: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RobotBoyFalling 9 | serializedVersion: 5 10 | m_AnimationType: 2 11 | m_Compressed: 0 12 | m_UseHighQualityCurve: 1 13 | m_RotationCurves: [] 14 | m_CompressedRotationCurves: [] 15 | m_PositionCurves: [] 16 | m_ScaleCurves: [] 17 | m_FloatCurves: [] 18 | m_PPtrCurves: 19 | - curve: 20 | - time: 0 21 | value: {fileID: 21300014, guid: 76d13a61287547d4fb40bfa27eca4e94, type: 3} 22 | attribute: m_Sprite 23 | path: 24 | classID: 212 25 | script: {fileID: 0} 26 | m_SampleRate: 24 27 | m_WrapMode: 0 28 | m_Bounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 0, y: 0, z: 0} 31 | m_ClipBindingConstant: 32 | genericBindings: 33 | - path: 0 34 | attribute: 0 35 | script: {fileID: 0} 36 | classID: 212 37 | customType: 23 38 | isPPtrCurve: 1 39 | pptrCurveMapping: 40 | - {fileID: 21300014, guid: 76d13a61287547d4fb40bfa27eca4e94, type: 3} 41 | m_AnimationClipSettings: 42 | serializedVersion: 2 43 | m_StartTime: 0 44 | m_StopTime: .0416666679 45 | m_OrientationOffsetY: 0 46 | m_Level: 0 47 | m_CycleOffset: 0 48 | m_LoopTime: 1 49 | m_LoopBlend: 0 50 | m_LoopBlendOrientation: 0 51 | m_LoopBlendPositionY: 0 52 | m_LoopBlendPositionXZ: 0 53 | m_KeepOriginalOrientation: 0 54 | m_KeepOriginalPositionY: 1 55 | m_KeepOriginalPositionXZ: 0 56 | m_HeightFromFeet: 0 57 | m_Mirror: 0 58 | m_EditorCurves: [] 59 | m_EulerEditorCurves: [] 60 | m_HasGenericRootTransform: 0 61 | m_GenerateMotionCurves: 0 62 | m_Events: [] 63 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyFalling.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03bedf7094c479549beb9434f2033c2e 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyIdle.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0a32aa5206b400428f52a44b234c97f 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump01.anim: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!74 &7400000 4 | AnimationClip: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RobotBoyJump01 9 | serializedVersion: 5 10 | m_AnimationType: 2 11 | m_Compressed: 0 12 | m_UseHighQualityCurve: 1 13 | m_RotationCurves: [] 14 | m_CompressedRotationCurves: [] 15 | m_PositionCurves: [] 16 | m_ScaleCurves: [] 17 | m_FloatCurves: [] 18 | m_PPtrCurves: 19 | - curve: 20 | - time: 0 21 | value: {fileID: 21300006, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 22 | attribute: m_Sprite 23 | path: 24 | classID: 212 25 | script: {fileID: 0} 26 | m_SampleRate: 24 27 | m_WrapMode: 0 28 | m_Bounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 0, y: 0, z: 0} 31 | m_ClipBindingConstant: 32 | genericBindings: 33 | - path: 0 34 | attribute: 0 35 | script: {fileID: 0} 36 | classID: 212 37 | customType: 23 38 | isPPtrCurve: 1 39 | pptrCurveMapping: 40 | - {fileID: 21300006, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 41 | m_AnimationClipSettings: 42 | serializedVersion: 2 43 | m_StartTime: 0 44 | m_StopTime: .0416666679 45 | m_OrientationOffsetY: 0 46 | m_Level: 0 47 | m_CycleOffset: 0 48 | m_LoopTime: 1 49 | m_LoopBlend: 0 50 | m_LoopBlendOrientation: 0 51 | m_LoopBlendPositionY: 0 52 | m_LoopBlendPositionXZ: 0 53 | m_KeepOriginalOrientation: 0 54 | m_KeepOriginalPositionY: 1 55 | m_KeepOriginalPositionXZ: 0 56 | m_HeightFromFeet: 0 57 | m_Mirror: 0 58 | m_EditorCurves: [] 59 | m_EulerEditorCurves: [] 60 | m_HasGenericRootTransform: 0 61 | m_GenerateMotionCurves: 0 62 | m_Events: [] 63 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump01.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d8caf2b5dcc5414c8d319d27f73828e 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump02.anim: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!74 &7400000 4 | AnimationClip: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RobotBoyJump02 9 | serializedVersion: 5 10 | m_AnimationType: 2 11 | m_Compressed: 0 12 | m_UseHighQualityCurve: 1 13 | m_RotationCurves: [] 14 | m_CompressedRotationCurves: [] 15 | m_PositionCurves: [] 16 | m_ScaleCurves: [] 17 | m_FloatCurves: [] 18 | m_PPtrCurves: 19 | - curve: 20 | - time: 0 21 | value: {fileID: 21300010, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 22 | attribute: m_Sprite 23 | path: 24 | classID: 212 25 | script: {fileID: 0} 26 | m_SampleRate: 24 27 | m_WrapMode: 0 28 | m_Bounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 0, y: 0, z: 0} 31 | m_ClipBindingConstant: 32 | genericBindings: 33 | - path: 0 34 | attribute: 0 35 | script: {fileID: 0} 36 | classID: 212 37 | customType: 23 38 | isPPtrCurve: 1 39 | pptrCurveMapping: 40 | - {fileID: 21300010, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 41 | m_AnimationClipSettings: 42 | serializedVersion: 2 43 | m_StartTime: 0 44 | m_StopTime: .0416666679 45 | m_OrientationOffsetY: 0 46 | m_Level: 0 47 | m_CycleOffset: 0 48 | m_LoopTime: 1 49 | m_LoopBlend: 0 50 | m_LoopBlendOrientation: 0 51 | m_LoopBlendPositionY: 0 52 | m_LoopBlendPositionXZ: 0 53 | m_KeepOriginalOrientation: 0 54 | m_KeepOriginalPositionY: 1 55 | m_KeepOriginalPositionXZ: 0 56 | m_HeightFromFeet: 0 57 | m_Mirror: 0 58 | m_EditorCurves: [] 59 | m_EulerEditorCurves: [] 60 | m_HasGenericRootTransform: 0 61 | m_GenerateMotionCurves: 0 62 | m_Events: [] 63 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump02.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 078bf204f06fcac44978d49dd094b43e 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump03.anim: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!74 &7400000 4 | AnimationClip: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RobotBoyJump03 9 | serializedVersion: 5 10 | m_AnimationType: 2 11 | m_Compressed: 0 12 | m_UseHighQualityCurve: 1 13 | m_RotationCurves: [] 14 | m_CompressedRotationCurves: [] 15 | m_PositionCurves: [] 16 | m_ScaleCurves: [] 17 | m_FloatCurves: [] 18 | m_PPtrCurves: 19 | - curve: 20 | - time: 0 21 | value: {fileID: 21300014, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 22 | attribute: m_Sprite 23 | path: 24 | classID: 212 25 | script: {fileID: 0} 26 | m_SampleRate: 24 27 | m_WrapMode: 0 28 | m_Bounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 0, y: 0, z: 0} 31 | m_ClipBindingConstant: 32 | genericBindings: 33 | - path: 0 34 | attribute: 0 35 | script: {fileID: 0} 36 | classID: 212 37 | customType: 23 38 | isPPtrCurve: 1 39 | pptrCurveMapping: 40 | - {fileID: 21300014, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 41 | m_AnimationClipSettings: 42 | serializedVersion: 2 43 | m_StartTime: 0 44 | m_StopTime: .0416666679 45 | m_OrientationOffsetY: 0 46 | m_Level: 0 47 | m_CycleOffset: 0 48 | m_LoopTime: 1 49 | m_LoopBlend: 0 50 | m_LoopBlendOrientation: 0 51 | m_LoopBlendPositionY: 0 52 | m_LoopBlendPositionXZ: 0 53 | m_KeepOriginalOrientation: 0 54 | m_KeepOriginalPositionY: 1 55 | m_KeepOriginalPositionXZ: 0 56 | m_HeightFromFeet: 0 57 | m_Mirror: 0 58 | m_EditorCurves: [] 59 | m_EulerEditorCurves: [] 60 | m_HasGenericRootTransform: 0 61 | m_GenerateMotionCurves: 0 62 | m_Events: [] 63 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump03.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d73a8b77a39f57843b3a434596ae2bc7 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump04.anim: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!74 &7400000 4 | AnimationClip: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RobotBoyJump04 9 | serializedVersion: 5 10 | m_AnimationType: 2 11 | m_Compressed: 0 12 | m_UseHighQualityCurve: 1 13 | m_RotationCurves: [] 14 | m_CompressedRotationCurves: [] 15 | m_PositionCurves: [] 16 | m_ScaleCurves: [] 17 | m_FloatCurves: [] 18 | m_PPtrCurves: 19 | - curve: 20 | - time: 0 21 | value: {fileID: 21300018, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 22 | attribute: m_Sprite 23 | path: 24 | classID: 212 25 | script: {fileID: 0} 26 | m_SampleRate: 24 27 | m_WrapMode: 0 28 | m_Bounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 0, y: 0, z: 0} 31 | m_ClipBindingConstant: 32 | genericBindings: 33 | - path: 0 34 | attribute: 0 35 | script: {fileID: 0} 36 | classID: 212 37 | customType: 23 38 | isPPtrCurve: 1 39 | pptrCurveMapping: 40 | - {fileID: 21300018, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 41 | m_AnimationClipSettings: 42 | serializedVersion: 2 43 | m_StartTime: 0 44 | m_StopTime: .0416666679 45 | m_OrientationOffsetY: 0 46 | m_Level: 0 47 | m_CycleOffset: 0 48 | m_LoopTime: 1 49 | m_LoopBlend: 0 50 | m_LoopBlendOrientation: 0 51 | m_LoopBlendPositionY: 0 52 | m_LoopBlendPositionXZ: 0 53 | m_KeepOriginalOrientation: 0 54 | m_KeepOriginalPositionY: 1 55 | m_KeepOriginalPositionXZ: 0 56 | m_HeightFromFeet: 0 57 | m_Mirror: 0 58 | m_EditorCurves: [] 59 | m_EulerEditorCurves: [] 60 | m_HasGenericRootTransform: 0 61 | m_GenerateMotionCurves: 0 62 | m_Events: [] 63 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump04.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bffb643e1be1ea84387be9145bc4e150 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump05.anim: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!74 &7400000 4 | AnimationClip: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RobotBoyJump05 9 | serializedVersion: 5 10 | m_AnimationType: 2 11 | m_Compressed: 0 12 | m_UseHighQualityCurve: 1 13 | m_RotationCurves: [] 14 | m_CompressedRotationCurves: [] 15 | m_PositionCurves: [] 16 | m_ScaleCurves: [] 17 | m_FloatCurves: [] 18 | m_PPtrCurves: 19 | - curve: 20 | - time: 0 21 | value: {fileID: 21300018, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 22 | attribute: m_Sprite 23 | path: 24 | classID: 212 25 | script: {fileID: 0} 26 | m_SampleRate: 60 27 | m_WrapMode: 0 28 | m_Bounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 0, y: 0, z: 0} 31 | m_ClipBindingConstant: 32 | genericBindings: 33 | - path: 0 34 | attribute: 0 35 | script: {fileID: 0} 36 | classID: 212 37 | customType: 23 38 | isPPtrCurve: 1 39 | pptrCurveMapping: 40 | - {fileID: 21300018, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 41 | m_AnimationClipSettings: 42 | serializedVersion: 2 43 | m_StartTime: 0 44 | m_StopTime: .0166666675 45 | m_OrientationOffsetY: 0 46 | m_Level: 0 47 | m_CycleOffset: 0 48 | m_LoopTime: 1 49 | m_LoopBlend: 0 50 | m_LoopBlendOrientation: 0 51 | m_LoopBlendPositionY: 0 52 | m_LoopBlendPositionXZ: 0 53 | m_KeepOriginalOrientation: 0 54 | m_KeepOriginalPositionY: 1 55 | m_KeepOriginalPositionXZ: 0 56 | m_HeightFromFeet: 0 57 | m_Mirror: 0 58 | m_EditorCurves: [] 59 | m_EulerEditorCurves: [] 60 | m_HasGenericRootTransform: 0 61 | m_GenerateMotionCurves: 0 62 | m_Events: [] 63 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump05.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1829b8c50e4108f4b936e37f91181337 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump06.anim: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!74 &7400000 4 | AnimationClip: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RobotBoyJump06 9 | serializedVersion: 5 10 | m_AnimationType: 2 11 | m_Compressed: 0 12 | m_UseHighQualityCurve: 1 13 | m_RotationCurves: [] 14 | m_CompressedRotationCurves: [] 15 | m_PositionCurves: [] 16 | m_ScaleCurves: [] 17 | m_FloatCurves: [] 18 | m_PPtrCurves: 19 | - curve: 20 | - time: 0 21 | value: {fileID: 21300026, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 22 | attribute: m_Sprite 23 | path: 24 | classID: 212 25 | script: {fileID: 0} 26 | m_SampleRate: 60 27 | m_WrapMode: 0 28 | m_Bounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 0, y: 0, z: 0} 31 | m_ClipBindingConstant: 32 | genericBindings: 33 | - path: 0 34 | attribute: 0 35 | script: {fileID: 0} 36 | classID: 212 37 | customType: 23 38 | isPPtrCurve: 1 39 | pptrCurveMapping: 40 | - {fileID: 21300026, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 41 | m_AnimationClipSettings: 42 | serializedVersion: 2 43 | m_StartTime: 0 44 | m_StopTime: .0166666675 45 | m_OrientationOffsetY: 0 46 | m_Level: 0 47 | m_CycleOffset: 0 48 | m_LoopTime: 1 49 | m_LoopBlend: 0 50 | m_LoopBlendOrientation: 0 51 | m_LoopBlendPositionY: 0 52 | m_LoopBlendPositionXZ: 0 53 | m_KeepOriginalOrientation: 0 54 | m_KeepOriginalPositionY: 1 55 | m_KeepOriginalPositionXZ: 0 56 | m_HeightFromFeet: 0 57 | m_Mirror: 0 58 | m_EditorCurves: [] 59 | m_EulerEditorCurves: [] 60 | m_HasGenericRootTransform: 0 61 | m_GenerateMotionCurves: 0 62 | m_Events: [] 63 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump06.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e0c47d6f0bab234794fcdf9b91e10ca 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump07.anim: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!74 &7400000 4 | AnimationClip: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RobotBoyJump07 9 | serializedVersion: 5 10 | m_AnimationType: 2 11 | m_Compressed: 0 12 | m_UseHighQualityCurve: 1 13 | m_RotationCurves: [] 14 | m_CompressedRotationCurves: [] 15 | m_PositionCurves: [] 16 | m_ScaleCurves: [] 17 | m_FloatCurves: [] 18 | m_PPtrCurves: 19 | - curve: 20 | - time: 0 21 | value: {fileID: 21300030, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 22 | attribute: m_Sprite 23 | path: 24 | classID: 212 25 | script: {fileID: 0} 26 | m_SampleRate: 60 27 | m_WrapMode: 0 28 | m_Bounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 0, y: 0, z: 0} 31 | m_ClipBindingConstant: 32 | genericBindings: 33 | - path: 0 34 | attribute: 0 35 | script: {fileID: 0} 36 | classID: 212 37 | customType: 23 38 | isPPtrCurve: 1 39 | pptrCurveMapping: 40 | - {fileID: 21300030, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 41 | m_AnimationClipSettings: 42 | serializedVersion: 2 43 | m_StartTime: 0 44 | m_StopTime: .0166666675 45 | m_OrientationOffsetY: 0 46 | m_Level: 0 47 | m_CycleOffset: 0 48 | m_LoopTime: 1 49 | m_LoopBlend: 0 50 | m_LoopBlendOrientation: 0 51 | m_LoopBlendPositionY: 0 52 | m_LoopBlendPositionXZ: 0 53 | m_KeepOriginalOrientation: 0 54 | m_KeepOriginalPositionY: 1 55 | m_KeepOriginalPositionXZ: 0 56 | m_HeightFromFeet: 0 57 | m_Mirror: 0 58 | m_EditorCurves: [] 59 | m_EulerEditorCurves: [] 60 | m_HasGenericRootTransform: 0 61 | m_GenerateMotionCurves: 0 62 | m_Events: [] 63 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump07.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e21ceef391a4b284a9ac47a7961c0c1a 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump08.anim: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!74 &7400000 4 | AnimationClip: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RobotBoyJump08 9 | serializedVersion: 5 10 | m_AnimationType: 2 11 | m_Compressed: 0 12 | m_UseHighQualityCurve: 1 13 | m_RotationCurves: [] 14 | m_CompressedRotationCurves: [] 15 | m_PositionCurves: [] 16 | m_ScaleCurves: [] 17 | m_FloatCurves: [] 18 | m_PPtrCurves: 19 | - curve: 20 | - time: 0 21 | value: {fileID: 21300034, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 22 | attribute: m_Sprite 23 | path: 24 | classID: 212 25 | script: {fileID: 0} 26 | m_SampleRate: 60 27 | m_WrapMode: 0 28 | m_Bounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 0, y: 0, z: 0} 31 | m_ClipBindingConstant: 32 | genericBindings: 33 | - path: 0 34 | attribute: 0 35 | script: {fileID: 0} 36 | classID: 212 37 | customType: 23 38 | isPPtrCurve: 1 39 | pptrCurveMapping: 40 | - {fileID: 21300034, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 41 | m_AnimationClipSettings: 42 | serializedVersion: 2 43 | m_StartTime: 0 44 | m_StopTime: .0166666675 45 | m_OrientationOffsetY: 0 46 | m_Level: 0 47 | m_CycleOffset: 0 48 | m_LoopTime: 1 49 | m_LoopBlend: 0 50 | m_LoopBlendOrientation: 0 51 | m_LoopBlendPositionY: 0 52 | m_LoopBlendPositionXZ: 0 53 | m_KeepOriginalOrientation: 0 54 | m_KeepOriginalPositionY: 1 55 | m_KeepOriginalPositionXZ: 0 56 | m_HeightFromFeet: 0 57 | m_Mirror: 0 58 | m_EditorCurves: [] 59 | m_EulerEditorCurves: [] 60 | m_HasGenericRootTransform: 0 61 | m_GenerateMotionCurves: 0 62 | m_Events: [] 63 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump08.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04c2ee985bb1a9849b5a6e8bee482aed 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump09.anim: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!74 &7400000 4 | AnimationClip: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RobotBoyJump09 9 | serializedVersion: 5 10 | m_AnimationType: 2 11 | m_Compressed: 0 12 | m_UseHighQualityCurve: 1 13 | m_RotationCurves: [] 14 | m_CompressedRotationCurves: [] 15 | m_PositionCurves: [] 16 | m_ScaleCurves: [] 17 | m_FloatCurves: [] 18 | m_PPtrCurves: 19 | - curve: 20 | - time: 0 21 | value: {fileID: 21300038, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 22 | attribute: m_Sprite 23 | path: 24 | classID: 212 25 | script: {fileID: 0} 26 | m_SampleRate: 60 27 | m_WrapMode: 0 28 | m_Bounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 0, y: 0, z: 0} 31 | m_ClipBindingConstant: 32 | genericBindings: 33 | - path: 0 34 | attribute: 0 35 | script: {fileID: 0} 36 | classID: 212 37 | customType: 23 38 | isPPtrCurve: 1 39 | pptrCurveMapping: 40 | - {fileID: 21300038, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 41 | m_AnimationClipSettings: 42 | serializedVersion: 2 43 | m_StartTime: 0 44 | m_StopTime: .0166666675 45 | m_OrientationOffsetY: 0 46 | m_Level: 0 47 | m_CycleOffset: 0 48 | m_LoopTime: 1 49 | m_LoopBlend: 0 50 | m_LoopBlendOrientation: 0 51 | m_LoopBlendPositionY: 0 52 | m_LoopBlendPositionXZ: 0 53 | m_KeepOriginalOrientation: 0 54 | m_KeepOriginalPositionY: 1 55 | m_KeepOriginalPositionXZ: 0 56 | m_HeightFromFeet: 0 57 | m_Mirror: 0 58 | m_EditorCurves: [] 59 | m_EulerEditorCurves: [] 60 | m_HasGenericRootTransform: 0 61 | m_GenerateMotionCurves: 0 62 | m_Events: [] 63 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump09.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57f38812aafe77142bf0c4ec50ff9c3a 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump10.anim: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!74 &7400000 4 | AnimationClip: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RobotBoyJump10 9 | serializedVersion: 5 10 | m_AnimationType: 2 11 | m_Compressed: 0 12 | m_UseHighQualityCurve: 1 13 | m_RotationCurves: [] 14 | m_CompressedRotationCurves: [] 15 | m_PositionCurves: [] 16 | m_ScaleCurves: [] 17 | m_FloatCurves: [] 18 | m_PPtrCurves: 19 | - curve: 20 | - time: 0 21 | value: {fileID: 21300042, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 22 | attribute: m_Sprite 23 | path: 24 | classID: 212 25 | script: {fileID: 0} 26 | m_SampleRate: 60 27 | m_WrapMode: 0 28 | m_Bounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 0, y: 0, z: 0} 31 | m_ClipBindingConstant: 32 | genericBindings: 33 | - path: 0 34 | attribute: 0 35 | script: {fileID: 0} 36 | classID: 212 37 | customType: 23 38 | isPPtrCurve: 1 39 | pptrCurveMapping: 40 | - {fileID: 21300042, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 41 | m_AnimationClipSettings: 42 | serializedVersion: 2 43 | m_StartTime: 0 44 | m_StopTime: .0166666675 45 | m_OrientationOffsetY: 0 46 | m_Level: 0 47 | m_CycleOffset: 0 48 | m_LoopTime: 1 49 | m_LoopBlend: 0 50 | m_LoopBlendOrientation: 0 51 | m_LoopBlendPositionY: 0 52 | m_LoopBlendPositionXZ: 0 53 | m_KeepOriginalOrientation: 0 54 | m_KeepOriginalPositionY: 1 55 | m_KeepOriginalPositionXZ: 0 56 | m_HeightFromFeet: 0 57 | m_Mirror: 0 58 | m_EditorCurves: [] 59 | m_EulerEditorCurves: [] 60 | m_HasGenericRootTransform: 0 61 | m_GenerateMotionCurves: 0 62 | m_Events: [] 63 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump10.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87defe4543f47ef41b345453900fe949 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump11.anim: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!74 &7400000 4 | AnimationClip: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RobotBoyJump11 9 | serializedVersion: 5 10 | m_AnimationType: 2 11 | m_Compressed: 0 12 | m_UseHighQualityCurve: 1 13 | m_RotationCurves: [] 14 | m_CompressedRotationCurves: [] 15 | m_PositionCurves: [] 16 | m_ScaleCurves: [] 17 | m_FloatCurves: [] 18 | m_PPtrCurves: 19 | - curve: 20 | - time: 0 21 | value: {fileID: 21300046, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 22 | attribute: m_Sprite 23 | path: 24 | classID: 212 25 | script: {fileID: 0} 26 | m_SampleRate: 60 27 | m_WrapMode: 0 28 | m_Bounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 0, y: 0, z: 0} 31 | m_ClipBindingConstant: 32 | genericBindings: 33 | - path: 0 34 | attribute: 0 35 | script: {fileID: 0} 36 | classID: 212 37 | customType: 23 38 | isPPtrCurve: 1 39 | pptrCurveMapping: 40 | - {fileID: 21300046, guid: 9e1a2edf6149977479db158e4fbf9671, type: 3} 41 | m_AnimationClipSettings: 42 | serializedVersion: 2 43 | m_StartTime: 0 44 | m_StopTime: .0166666675 45 | m_OrientationOffsetY: 0 46 | m_Level: 0 47 | m_CycleOffset: 0 48 | m_LoopTime: 1 49 | m_LoopBlend: 0 50 | m_LoopBlendOrientation: 0 51 | m_LoopBlendPositionY: 0 52 | m_LoopBlendPositionXZ: 0 53 | m_KeepOriginalOrientation: 0 54 | m_KeepOriginalPositionY: 1 55 | m_KeepOriginalPositionXZ: 0 56 | m_HeightFromFeet: 0 57 | m_Mirror: 0 58 | m_EditorCurves: [] 59 | m_EulerEditorCurves: [] 60 | m_HasGenericRootTransform: 0 61 | m_GenerateMotionCurves: 0 62 | m_Events: [] 63 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyJump11.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5944ac50c6dc9442844cef438bb36fe 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyRun.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c4aa503092e12040ac412fec79b5d67 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animations/RobotBoyWalk.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f88bded061933e41a9ed57ae1d07946 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animator.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b6fac374594252145b045395449bc9b2 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Animator/2dCharacterAnimator.controller.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5fc43f0c4b413534ba12c51c0e5e5f6f 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a8360d6cbb0b24d30ad943985708a039 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Materials/SpriteLit.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: SpriteLit 10 | m_Shader: {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: ETC1_EXTERNAL_ALPHA 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_CustomRenderQueue: -1 15 | stringTagMap: {} 16 | disabledShaderPasses: [] 17 | m_SavedProperties: 18 | serializedVersion: 3 19 | m_TexEnvs: 20 | - _AlphaTex: 21 | m_Texture: {fileID: 0} 22 | m_Scale: {x: 1, y: 1} 23 | m_Offset: {x: 0, y: 0} 24 | - _MainTex: 25 | m_Texture: {fileID: 0} 26 | m_Scale: {x: 1, y: 1} 27 | m_Offset: {x: 0, y: 0} 28 | m_Floats: 29 | - PixelSnap: 0 30 | - _EnableExternalAlpha: 0 31 | m_Colors: 32 | - _Color: {r: 1, g: 1, b: 1, a: 1} 33 | - _Flip: {r: 1, g: 1, b: 1, a: 1} 34 | - _RendererColor: {r: 1, g: 1, b: 1, a: 1} 35 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Materials/SpriteLit.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 272ba847f100d4251bb8260575189042 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/PhysicsMaterials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: acf5e119c54034bd8bfbd5f21cc246db 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/PhysicsMaterials/BouncyBox.physicsMaterial2D: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!62 &6200000 4 | PhysicsMaterial2D: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: BouncyBox 9 | friction: .400000006 10 | bounciness: .400000006 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/PhysicsMaterials/BouncyBox.physicsMaterial2D.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8be6341e1ce3f4cec9902bc34f72d20a 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/PhysicsMaterials/Slippery.physicsMaterial2D: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!62 &6200000 4 | PhysicsMaterial2D: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: Slippery 9 | friction: 0 10 | bounciness: 0 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/PhysicsMaterials/Slippery.physicsMaterial2D.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3626fe8e008014f6bbd19bb72937b311 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/PhysicsMaterials/Sticky.physicsMaterial2D: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!62 &6200000 4 | PhysicsMaterial2D: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: Sticky 9 | friction: 1 10 | bounciness: 0 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/PhysicsMaterials/Sticky.physicsMaterial2D.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0cb77231a430b454fb792ff7ffcc3943 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e6569085fafaa4cd1b747c51376fa329 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Prefabs/CharacterRobotBoy.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87a2357765801c34292d6718d8b4d770 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Prefabs/CollisionSlider.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &100000 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 100100000} 8 | serializedVersion: 4 9 | m_Component: 10 | - 4: {fileID: 400000} 11 | - 61: {fileID: 6100000} 12 | m_Layer: 0 13 | m_Name: CollisionSlider 14 | m_TagString: Untagged 15 | m_Icon: {fileID: 0} 16 | m_NavMeshLayer: 0 17 | m_StaticEditorFlags: 0 18 | m_IsActive: 1 19 | --- !u!4 &400000 20 | Transform: 21 | m_ObjectHideFlags: 1 22 | m_PrefabParentObject: {fileID: 0} 23 | m_PrefabInternal: {fileID: 100100000} 24 | m_GameObject: {fileID: 100000} 25 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 26 | m_LocalPosition: {x: -9.38811588, y: -.612371027, z: 0} 27 | m_LocalScale: {x: 1, y: 1, z: 1} 28 | m_Children: [] 29 | m_Father: {fileID: 0} 30 | m_RootOrder: 0 31 | --- !u!61 &6100000 32 | BoxCollider2D: 33 | m_ObjectHideFlags: 1 34 | m_PrefabParentObject: {fileID: 0} 35 | m_PrefabInternal: {fileID: 100100000} 36 | m_GameObject: {fileID: 100000} 37 | m_Enabled: 1 38 | m_Material: {fileID: 6200000, guid: 3626fe8e008014f6bbd19bb72937b311, type: 2} 39 | m_IsTrigger: 0 40 | m_Size: {x: .321795791, y: .64172399} 41 | m_Center: {x: -.036658287, y: -.0611513853} 42 | --- !u!1001 &100100000 43 | Prefab: 44 | m_ObjectHideFlags: 1 45 | serializedVersion: 2 46 | m_Modification: 47 | m_TransformParent: {fileID: 0} 48 | m_Modifications: [] 49 | m_RemovedComponents: [] 50 | m_DeprecatedTransformRoot: {fileID: 0} 51 | m_DeprecatedTransformMap: {} 52 | m_DeprecatedTransformComplete: 1 53 | m_ParentPrefab: {fileID: 0} 54 | m_RootGameObject: {fileID: 100000} 55 | m_IsPrefabParent: 1 56 | m_IsExploded: 1 57 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Prefabs/CollisionSlider.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a71c12ae885e4f80b5144a4652bbeb4 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Prefabs/CratePink.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &100000 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 100100000} 8 | serializedVersion: 4 9 | m_Component: 10 | - 4: {fileID: 400000} 11 | - 212: {fileID: 21200000} 12 | - 61: {fileID: 6100000} 13 | - 50: {fileID: 5000000} 14 | m_Layer: 0 15 | m_Name: CratePink 16 | m_TagString: Untagged 17 | m_Icon: {fileID: 0} 18 | m_NavMeshLayer: 0 19 | m_StaticEditorFlags: 0 20 | m_IsActive: 1 21 | --- !u!4 &400000 22 | Transform: 23 | m_ObjectHideFlags: 1 24 | m_PrefabParentObject: {fileID: 0} 25 | m_PrefabInternal: {fileID: 100100000} 26 | m_GameObject: {fileID: 100000} 27 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 28 | m_LocalPosition: {x: 26.875, y: 3.5, z: 0} 29 | m_LocalScale: {x: 1, y: 1, z: 1} 30 | m_Children: [] 31 | m_Father: {fileID: 0} 32 | m_RootOrder: 0 33 | --- !u!50 &5000000 34 | Rigidbody2D: 35 | m_ObjectHideFlags: 1 36 | m_PrefabParentObject: {fileID: 0} 37 | m_PrefabInternal: {fileID: 100100000} 38 | m_GameObject: {fileID: 100000} 39 | m_Mass: 1 40 | m_LinearDrag: 0 41 | m_AngularDrag: .0500000007 42 | m_GravityScale: 3 43 | m_FixedAngle: 0 44 | m_IsKinematic: 0 45 | m_Interpolate: 0 46 | m_SleepingMode: 1 47 | m_CollisionDetection: 0 48 | --- !u!61 &6100000 49 | BoxCollider2D: 50 | m_ObjectHideFlags: 1 51 | m_PrefabParentObject: {fileID: 0} 52 | m_PrefabInternal: {fileID: 100100000} 53 | m_GameObject: {fileID: 100000} 54 | m_Enabled: 1 55 | m_Material: {fileID: 6200000, guid: 8be6341e1ce3f4cec9902bc34f72d20a, type: 2} 56 | m_IsTrigger: 0 57 | m_UsedByEffector: 0 58 | m_Offset: {x: .625009537, y: .625220299} 59 | serializedVersion: 2 60 | m_Size: {x: 1.23269653, y: 1.23209572} 61 | --- !u!212 &21200000 62 | SpriteRenderer: 63 | m_ObjectHideFlags: 1 64 | m_PrefabParentObject: {fileID: 0} 65 | m_PrefabInternal: {fileID: 100100000} 66 | m_GameObject: {fileID: 100000} 67 | m_Enabled: 1 68 | m_CastShadows: 0 69 | m_ReceiveShadows: 0 70 | m_LightmapIndex: 255 71 | m_LightmapIndexDynamic: 255 72 | m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0} 73 | m_LightmapTilingOffsetDynamic: {x: 1, y: 1, z: 0, w: 0} 74 | m_Materials: 75 | - {fileID: 2100000, guid: 272ba847f100d4251bb8260575189042, type: 2} 76 | m_SubsetIndices: 77 | m_StaticBatchRoot: {fileID: 0} 78 | m_UseLightProbes: 0 79 | m_UseReflectionProbes: 1 80 | m_ProbeAnchor: {fileID: 0} 81 | m_ScaleInLightmap: 1 82 | m_PreserveUVs: 0 83 | m_AutoUVMaxDistance: .5 84 | m_AutoUVMaxAngle: 89 85 | m_LightmapParameters: {fileID: 0} 86 | m_SortingLayerID: 1859086223 87 | m_SortingOrder: 0 88 | m_Sprite: {fileID: 21300000, guid: 12ef7cbdfe0e143fa858a324456c8979, type: 3} 89 | m_Color: {r: 1, g: 1, b: 1, a: 1} 90 | --- !u!1001 &100100000 91 | Prefab: 92 | m_ObjectHideFlags: 1 93 | serializedVersion: 2 94 | m_Modification: 95 | m_TransformParent: {fileID: 0} 96 | m_Modifications: [] 97 | m_RemovedComponents: [] 98 | m_ParentPrefab: {fileID: 0} 99 | m_RootGameObject: {fileID: 100000} 100 | m_IsPrefabParent: 1 101 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Prefabs/CratePink.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 18fcd494ab71841d695135246693eb3a 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Prefabs/ExtentsLeft.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0eb16b4b3e362ef4f97494dd0e686c46 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Prefabs/ExtentsRight.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b241b59d6a89aff4fbf0bce77e644761 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Prefabs/Killzone.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &100000 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 100100000} 8 | serializedVersion: 4 9 | m_Component: 10 | - 4: {fileID: 400000} 11 | - 61: {fileID: 6100000} 12 | - 114: {fileID: 11400000} 13 | m_Layer: 0 14 | m_Name: Killzone 15 | m_TagString: Untagged 16 | m_Icon: {fileID: 0} 17 | m_NavMeshLayer: 0 18 | m_StaticEditorFlags: 0 19 | m_IsActive: 1 20 | --- !u!4 &400000 21 | Transform: 22 | m_ObjectHideFlags: 1 23 | m_PrefabParentObject: {fileID: 0} 24 | m_PrefabInternal: {fileID: 100100000} 25 | m_GameObject: {fileID: 100000} 26 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 27 | m_LocalPosition: {x: 0, y: 0, z: 0} 28 | m_LocalScale: {x: 1, y: 1, z: 1} 29 | m_Children: [] 30 | m_Father: {fileID: 0} 31 | m_RootOrder: 0 32 | --- !u!61 &6100000 33 | BoxCollider2D: 34 | m_ObjectHideFlags: 1 35 | m_PrefabParentObject: {fileID: 0} 36 | m_PrefabInternal: {fileID: 100100000} 37 | m_GameObject: {fileID: 100000} 38 | m_Enabled: 1 39 | m_Material: {fileID: 0} 40 | m_IsTrigger: 1 41 | m_Size: {x: 72.5612183, y: 4.95154667} 42 | m_Center: {x: 26.250351, y: -7.49113798} 43 | --- !u!114 &11400000 44 | MonoBehaviour: 45 | m_ObjectHideFlags: 1 46 | m_PrefabParentObject: {fileID: 0} 47 | m_PrefabInternal: {fileID: 100100000} 48 | m_GameObject: {fileID: 100000} 49 | m_Enabled: 1 50 | m_EditorHideFlags: 0 51 | m_Script: {fileID: 11500000, guid: e053b0a94752146e79954ce4df1b5565, type: 3} 52 | m_Name: 53 | m_EditorClassIdentifier: 54 | --- !u!1001 &100100000 55 | Prefab: 56 | m_ObjectHideFlags: 1 57 | serializedVersion: 2 58 | m_Modification: 59 | m_TransformParent: {fileID: 0} 60 | m_Modifications: [] 61 | m_RemovedComponents: [] 62 | m_DeprecatedTransformRoot: {fileID: 0} 63 | m_DeprecatedTransformMap: {} 64 | m_DeprecatedTransformComplete: 1 65 | m_ParentPrefab: {fileID: 0} 66 | m_RootGameObject: {fileID: 100000} 67 | m_IsPrefabParent: 1 68 | m_IsExploded: 1 69 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Prefabs/Killzone.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a038b284634e29f4aaf058814aa61a6f 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Prefabs/Platform04x01.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57977547c59abb546bbb1501e3c417db 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Prefabs/Platform08x01.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 674c23718320e9d498cdad2a5bcd576a 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Prefabs/Platform12x01.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ce4cbc241d3aca4da0b94a0ffa0d51f 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Prefabs/Platform16x01.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ba4eef1c1bb56b444b143beb8d3e30d5 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Prefabs/Platform36x01.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d024aaa09f4080d448d16f62d1a97b0b 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Prefabs/PlatformRamp.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47d3e747b2e87de4c8358aaa436365ea 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b656cca21e797074a84563027a508ce1 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Scripts/Camera2DFollow.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityStandardAssets._2D 5 | { 6 | public class Camera2DFollow : MonoBehaviour 7 | { 8 | public Transform target; 9 | public float damping = 1; 10 | public float lookAheadFactor = 3; 11 | public float lookAheadReturnSpeed = 0.5f; 12 | public float lookAheadMoveThreshold = 0.1f; 13 | 14 | private float m_OffsetZ; 15 | private Vector3 m_LastTargetPosition; 16 | private Vector3 m_CurrentVelocity; 17 | private Vector3 m_LookAheadPos; 18 | 19 | // Use this for initialization 20 | private void Start() 21 | { 22 | m_LastTargetPosition = target.position; 23 | m_OffsetZ = (transform.position - target.position).z; 24 | transform.parent = null; 25 | } 26 | 27 | 28 | // Update is called once per frame 29 | private void Update() 30 | { 31 | // only update lookahead pos if accelerating or changed direction 32 | float xMoveDelta = (target.position - m_LastTargetPosition).x; 33 | 34 | bool updateLookAheadTarget = Mathf.Abs(xMoveDelta) > lookAheadMoveThreshold; 35 | 36 | if (updateLookAheadTarget) 37 | { 38 | m_LookAheadPos = lookAheadFactor*Vector3.right*Mathf.Sign(xMoveDelta); 39 | } 40 | else 41 | { 42 | m_LookAheadPos = Vector3.MoveTowards(m_LookAheadPos, Vector3.zero, Time.deltaTime*lookAheadReturnSpeed); 43 | } 44 | 45 | Vector3 aheadTargetPos = target.position + m_LookAheadPos + Vector3.forward*m_OffsetZ; 46 | Vector3 newPos = Vector3.SmoothDamp(transform.position, aheadTargetPos, ref m_CurrentVelocity, damping); 47 | 48 | transform.position = newPos; 49 | 50 | m_LastTargetPosition = target.position; 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Scripts/Camera2DFollow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d8238cc53530b64fbb7828c3d3bb591 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Scripts/CameraFollow.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | 5 | namespace UnityStandardAssets._2D 6 | { 7 | public class CameraFollow : MonoBehaviour 8 | { 9 | public float xMargin = 1f; // Distance in the x axis the player can move before the camera follows. 10 | public float yMargin = 1f; // Distance in the y axis the player can move before the camera follows. 11 | public float xSmooth = 8f; // How smoothly the camera catches up with it's target movement in the x axis. 12 | public float ySmooth = 8f; // How smoothly the camera catches up with it's target movement in the y axis. 13 | public Vector2 maxXAndY; // The maximum x and y coordinates the camera can have. 14 | public Vector2 minXAndY; // The minimum x and y coordinates the camera can have. 15 | 16 | private Transform m_Player; // Reference to the player's transform. 17 | 18 | 19 | private void Awake() 20 | { 21 | // Setting up the reference. 22 | m_Player = GameObject.FindGameObjectWithTag("Player").transform; 23 | } 24 | 25 | 26 | private bool CheckXMargin() 27 | { 28 | // Returns true if the distance between the camera and the player in the x axis is greater than the x margin. 29 | return Mathf.Abs(transform.position.x - m_Player.position.x) > xMargin; 30 | } 31 | 32 | 33 | private bool CheckYMargin() 34 | { 35 | // Returns true if the distance between the camera and the player in the y axis is greater than the y margin. 36 | return Mathf.Abs(transform.position.y - m_Player.position.y) > yMargin; 37 | } 38 | 39 | 40 | private void Update() 41 | { 42 | TrackPlayer(); 43 | } 44 | 45 | 46 | private void TrackPlayer() 47 | { 48 | // By default the target x and y coordinates of the camera are it's current x and y coordinates. 49 | float targetX = transform.position.x; 50 | float targetY = transform.position.y; 51 | 52 | // If the player has moved beyond the x margin... 53 | if (CheckXMargin()) 54 | { 55 | // ... the target x coordinate should be a Lerp between the camera's current x position and the player's current x position. 56 | targetX = Mathf.Lerp(transform.position.x, m_Player.position.x, xSmooth*Time.deltaTime); 57 | } 58 | 59 | // If the player has moved beyond the y margin... 60 | if (CheckYMargin()) 61 | { 62 | // ... the target y coordinate should be a Lerp between the camera's current y position and the player's current y position. 63 | targetY = Mathf.Lerp(transform.position.y, m_Player.position.y, ySmooth*Time.deltaTime); 64 | } 65 | 66 | // The target x and y coordinates should not be larger than the maximum or smaller than the minimum. 67 | targetX = Mathf.Clamp(targetX, minXAndY.x, maxXAndY.x); 68 | targetY = Mathf.Clamp(targetY, minXAndY.y, maxXAndY.y); 69 | 70 | // Set the camera's position to the target position with the same z component. 71 | transform.position = new Vector3(targetX, targetY, transform.position.z); 72 | } 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Scripts/CameraFollow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9dfad760b6e9455593192a6d869f7ed 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Scripts/Platformer2DUserControl.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UnityStandardAssets.CrossPlatformInput; 4 | 5 | namespace UnityStandardAssets._2D 6 | { 7 | [RequireComponent(typeof (PlatformerCharacter2D))] 8 | public class Platformer2DUserControl : MonoBehaviour 9 | { 10 | private PlatformerCharacter2D m_Character; 11 | private bool m_Jump; 12 | 13 | 14 | private void Awake() 15 | { 16 | m_Character = GetComponent(); 17 | } 18 | 19 | 20 | private void Update() 21 | { 22 | if (!m_Jump) 23 | { 24 | // Read the jump input in Update so button presses aren't missed. 25 | m_Jump = CrossPlatformInputManager.GetButtonDown("Jump"); 26 | } 27 | } 28 | 29 | 30 | private void FixedUpdate() 31 | { 32 | // Read the inputs. 33 | bool crouch = Input.GetKey(KeyCode.LeftControl); 34 | float h = CrossPlatformInputManager.GetAxis("Horizontal"); 35 | // Pass all parameters to the character control script. 36 | m_Character.Move(h, crouch, m_Jump); 37 | m_Jump = false; 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Scripts/Platformer2DUserControl.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c3d7b34a3bb2d4e4b926e7e729d3d410 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Scripts/PlatformerCharacter2D.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d08f91df3bd212f429df17f53ce2f364 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Scripts/Restarter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UnityEngine.SceneManagement; 4 | 5 | namespace UnityStandardAssets._2D 6 | { 7 | public class Restarter : MonoBehaviour 8 | { 9 | private void OnTriggerEnter2D(Collider2D other) 10 | { 11 | if (other.tag == "Player") 12 | { 13 | SceneManager.LoadScene(SceneManager.GetSceneAt(0).name); 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Scripts/Restarter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e053b0a94752146e79954ce4df1b5565 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Sprites.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e94a3b96b1dbb7443b18f1c1f5b041f8 3 | folderAsset: yes 4 | timeCreated: 1436977288 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Sprites/BackgroundGreyGridSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:f02ed9f68c6c7d4f318622fd3e199d9d4997f71feae491cb04d64d52b09b0584 3 | size 17436 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Sprites/BackgroundGreyGridSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cbbabe9e292f5604897926494bb38fef 3 | TextureImporter: 4 | fileIDToRecycleName: 5 | 21300000: PrototypeGrey04x04 6 | serializedVersion: 2 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | linearTexture: 0 11 | correctGamma: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapFadeDistanceStart: 1 15 | mipMapFadeDistanceEnd: 3 16 | bumpmap: 17 | convertToNormalMap: 0 18 | externalNormalMap: 0 19 | heightScale: .25 20 | normalMapFilter: 0 21 | isReadable: 0 22 | grayScaleToAlpha: 0 23 | generateCubemap: 0 24 | cubemapConvolution: 0 25 | cubemapConvolutionSteps: 8 26 | cubemapConvolutionExponent: 1.5 27 | seamlessCubemap: 0 28 | textureFormat: -1 29 | maxTextureSize: 512 30 | textureSettings: 31 | filterMode: 1 32 | aniso: 16 33 | mipBias: -1 34 | wrapMode: 1 35 | nPOTScale: 0 36 | lightmap: 0 37 | rGBM: 0 38 | compressionQuality: 50 39 | spriteMode: 1 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 6 43 | spritePivot: {x: .5, y: .5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 204.800003 46 | alphaIsTransparency: 1 47 | textureType: 8 48 | buildTargetSettings: [] 49 | spriteSheet: 50 | sprites: [] 51 | spritePackingTag: 52 | userData: 53 | assetBundleName: 54 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Sprites/BackgroundNavyGridSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:69f9b0931726cb84f2ebb0e309a072a965969ca0f9b97defad3cb83447d7e1ed 3 | size 17392 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Sprites/BackgroundNavyGridSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d0c184845252df44a655359de388cb8 3 | TextureImporter: 4 | fileIDToRecycleName: 5 | 21300000: PrototypeBlue04x04 6 | serializedVersion: 2 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | linearTexture: 0 11 | correctGamma: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapFadeDistanceStart: 1 15 | mipMapFadeDistanceEnd: 3 16 | bumpmap: 17 | convertToNormalMap: 0 18 | externalNormalMap: 0 19 | heightScale: .25 20 | normalMapFilter: 0 21 | isReadable: 0 22 | grayScaleToAlpha: 0 23 | generateCubemap: 0 24 | cubemapConvolution: 0 25 | cubemapConvolutionSteps: 8 26 | cubemapConvolutionExponent: 1.5 27 | seamlessCubemap: 0 28 | textureFormat: -1 29 | maxTextureSize: 512 30 | textureSettings: 31 | filterMode: 1 32 | aniso: 16 33 | mipBias: -1 34 | wrapMode: 1 35 | nPOTScale: 0 36 | lightmap: 0 37 | rGBM: 0 38 | compressionQuality: 50 39 | spriteMode: 1 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 6 43 | spritePivot: {x: .5, y: .5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 204.800003 46 | alphaIsTransparency: 1 47 | textureType: 8 48 | buildTargetSettings: 49 | - buildTarget: iPhone 50 | maxTextureSize: 512 51 | textureFormat: -1 52 | compressionQuality: 50 53 | - buildTarget: Android 54 | maxTextureSize: 512 55 | textureFormat: -1 56 | compressionQuality: 50 57 | - buildTarget: BlackBerry 58 | maxTextureSize: 512 59 | textureFormat: -1 60 | compressionQuality: 50 61 | - buildTarget: FlashPlayer 62 | maxTextureSize: 1024 63 | textureFormat: -1 64 | compressionQuality: 50 65 | - buildTarget: WP8 66 | maxTextureSize: 512 67 | textureFormat: -1 68 | compressionQuality: 50 69 | spriteSheet: 70 | sprites: [] 71 | spritePackingTag: 72 | userData: 73 | assetBundleName: 74 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Sprites/CratePinkGridSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:5156690f07d6acad5d49a4b0026c567d3ad1b761c710f7abc28ba77ac5e571eb 3 | size 16323 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Sprites/CratePinkGridSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 12ef7cbdfe0e143fa858a324456c8979 3 | TextureImporter: 4 | fileIDToRecycleName: 5 | 21300000: PrototypeGreen02x02 6 | serializedVersion: 2 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | linearTexture: 0 11 | correctGamma: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapFadeDistanceStart: 1 15 | mipMapFadeDistanceEnd: 3 16 | bumpmap: 17 | convertToNormalMap: 0 18 | externalNormalMap: 0 19 | heightScale: .25 20 | normalMapFilter: 0 21 | isReadable: 0 22 | grayScaleToAlpha: 0 23 | generateCubemap: 0 24 | cubemapConvolution: 0 25 | cubemapConvolutionSteps: 8 26 | cubemapConvolutionExponent: 1.5 27 | seamlessCubemap: 0 28 | textureFormat: -1 29 | maxTextureSize: 1024 30 | textureSettings: 31 | filterMode: 1 32 | aniso: 16 33 | mipBias: -1 34 | wrapMode: 1 35 | nPOTScale: 0 36 | lightmap: 0 37 | rGBM: 0 38 | compressionQuality: 50 39 | spriteMode: 1 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 6 43 | spritePivot: {x: .5, y: .5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 204.800003 46 | alphaIsTransparency: 1 47 | textureType: 8 48 | buildTargetSettings: 49 | - buildTarget: iPhone 50 | maxTextureSize: 64 51 | textureFormat: -1 52 | compressionQuality: 50 53 | - buildTarget: Android 54 | maxTextureSize: 64 55 | textureFormat: -1 56 | compressionQuality: 50 57 | - buildTarget: BlackBerry 58 | maxTextureSize: 64 59 | textureFormat: -1 60 | compressionQuality: 50 61 | - buildTarget: WP8 62 | maxTextureSize: 64 63 | textureFormat: -1 64 | compressionQuality: 50 65 | spriteSheet: 66 | sprites: [] 67 | spritePackingTag: 68 | userData: 69 | assetBundleName: 70 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Sprites/PlatformWhiteSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:41270c6dcda2330447f852da11603247c130192140e0fc0d8e86a459f99d2347 3 | size 15955 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Sprites/PlatformWhiteSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d90a8faf6fb9540b084ef2825cc3a5dc 3 | TextureImporter: 4 | fileIDToRecycleName: 5 | 21300000: PrototypeWhite04x01 6 | serializedVersion: 2 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | linearTexture: 0 11 | correctGamma: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapFadeDistanceStart: 1 15 | mipMapFadeDistanceEnd: 3 16 | bumpmap: 17 | convertToNormalMap: 0 18 | externalNormalMap: 0 19 | heightScale: .25 20 | normalMapFilter: 0 21 | isReadable: 0 22 | grayScaleToAlpha: 0 23 | generateCubemap: 0 24 | cubemapConvolution: 0 25 | cubemapConvolutionSteps: 8 26 | cubemapConvolutionExponent: 1.5 27 | seamlessCubemap: 0 28 | textureFormat: -1 29 | maxTextureSize: 512 30 | textureSettings: 31 | filterMode: 1 32 | aniso: 16 33 | mipBias: -1 34 | wrapMode: 1 35 | nPOTScale: 0 36 | lightmap: 0 37 | rGBM: 0 38 | compressionQuality: 50 39 | spriteMode: 1 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 6 43 | spritePivot: {x: .5, y: .5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 204.800003 46 | alphaIsTransparency: 1 47 | textureType: 8 48 | buildTargetSettings: 49 | - buildTarget: iPhone 50 | maxTextureSize: 128 51 | textureFormat: -1 52 | compressionQuality: 50 53 | - buildTarget: Android 54 | maxTextureSize: 128 55 | textureFormat: -1 56 | compressionQuality: 50 57 | - buildTarget: BlackBerry 58 | maxTextureSize: 128 59 | textureFormat: -1 60 | compressionQuality: 50 61 | - buildTarget: WP8 62 | maxTextureSize: 128 63 | textureFormat: -1 64 | compressionQuality: 50 65 | spriteSheet: 66 | sprites: [] 67 | spritePackingTag: 68 | userData: 69 | assetBundleName: 70 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Sprites/RobotBoyCrouchSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:d7eeebebe0cd3d0053632d0757682f5b6f8ec6b467bf8568c575b1b8d3a50bd3 3 | size 679314 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Sprites/RobotBoyDeathSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:6c1c600206ceb357e2d4014f6bb180a1bc727a78747a2fae05f64a8d11ba7377 3 | size 1125596 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Sprites/RobotBoyIdleSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:110d9c678fd72121e3c98f1f4e1a5029e2c97522b9985284433bddd15849010d 3 | size 980757 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Sprites/RobotBoyJumpSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:a236b7cad31da79e797f9a16a7eabf8e8aa54c88230cba172dda618f7ed06417 3 | size 802260 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Sprites/RobotBoyRollSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:0259d881d9a9b6a3585c1905563177a0f093bdb3ba7341bd3df26d864d70fefd 3 | size 814006 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Sprites/RobotBoyRunSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:28e1722638987ccbb4ac086ef0ff87f8f41cfed4fae00662381f89719b4ae24b 3 | size 511982 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/2D/Sprites/RobotBoyWalkSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:9f62f9b73674483487c9ea512b55cec50600ac97bd5d66ecd715ff35f42bcd68 3 | size 471629 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 710bc43f80d178548bd226c252c8e65b 3 | folderAsset: yes 4 | timeCreated: 1436977288 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/CrossPlatformInputGuidelines.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3b997593a4f12c4c991490593f3b513 3 | TextScriptImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d3fb8e05edcf4b41aef584ca1b0d06f 3 | folderAsset: yes 4 | timeCreated: 1436977288 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Prefabs/CarTiltControls.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 174090ae7f9eff84abe76f0ff062efac 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Prefabs/DualTouchControls.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2169821f0567671499a5c10104c69c24 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Prefabs/MobileAircraftControls.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3369231b1ed7ad34e84d9240a571db81 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Prefabs/MobileSingleStickControl.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9529ecc3d479da5499993355e6c2cb4f 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Prefabs/MobileTiltControlRig.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 999388b68bb99b44099461bfbed94358 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f66eeca8ac36914e9ec9a716a9d9f73 3 | folderAsset: yes 4 | timeCreated: 1436977288 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts/AxisTouchButton.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UnityEngine.EventSystems; 4 | 5 | namespace UnityStandardAssets.CrossPlatformInput 6 | { 7 | public class AxisTouchButton : MonoBehaviour, IPointerDownHandler, IPointerUpHandler 8 | { 9 | // designed to work in a pair with another axis touch button 10 | // (typically with one having -1 and one having 1 axisValues) 11 | public string axisName = "Horizontal"; // The name of the axis 12 | public float axisValue = 1; // The axis that the value has 13 | public float responseSpeed = 3; // The speed at which the axis touch button responds 14 | public float returnToCentreSpeed = 3; // The speed at which the button will return to its centre 15 | 16 | AxisTouchButton m_PairedWith; // Which button this one is paired with 17 | CrossPlatformInputManager.VirtualAxis m_Axis; // A reference to the virtual axis as it is in the cross platform input 18 | 19 | void OnEnable() 20 | { 21 | if (!CrossPlatformInputManager.AxisExists(axisName)) 22 | { 23 | // if the axis doesnt exist create a new one in cross platform input 24 | m_Axis = new CrossPlatformInputManager.VirtualAxis(axisName); 25 | CrossPlatformInputManager.RegisterVirtualAxis(m_Axis); 26 | } 27 | else 28 | { 29 | m_Axis = CrossPlatformInputManager.VirtualAxisReference(axisName); 30 | } 31 | FindPairedButton(); 32 | } 33 | 34 | void FindPairedButton() 35 | { 36 | // find the other button witch which this button should be paired 37 | // (it should have the same axisName) 38 | var otherAxisButtons = FindObjectsOfType(typeof(AxisTouchButton)) as AxisTouchButton[]; 39 | 40 | if (otherAxisButtons != null) 41 | { 42 | for (int i = 0; i < otherAxisButtons.Length; i++) 43 | { 44 | if (otherAxisButtons[i].axisName == axisName && otherAxisButtons[i] != this) 45 | { 46 | m_PairedWith = otherAxisButtons[i]; 47 | } 48 | } 49 | } 50 | } 51 | 52 | void OnDisable() 53 | { 54 | // The object is disabled so remove it from the cross platform input system 55 | m_Axis.Remove(); 56 | } 57 | 58 | 59 | public void OnPointerDown(PointerEventData data) 60 | { 61 | if (m_PairedWith == null) 62 | { 63 | FindPairedButton(); 64 | } 65 | // update the axis and record that the button has been pressed this frame 66 | m_Axis.Update(Mathf.MoveTowards(m_Axis.GetValue, axisValue, responseSpeed * Time.deltaTime)); 67 | } 68 | 69 | 70 | public void OnPointerUp(PointerEventData data) 71 | { 72 | m_Axis.Update(Mathf.MoveTowards(m_Axis.GetValue, 0, responseSpeed * Time.deltaTime)); 73 | } 74 | } 75 | } -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts/AxisTouchButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ab98b66288df7b4fa182075f2f12bd6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts/ButtonHandler.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityStandardAssets.CrossPlatformInput 5 | { 6 | public class ButtonHandler : MonoBehaviour 7 | { 8 | 9 | public string Name; 10 | 11 | void OnEnable() 12 | { 13 | 14 | } 15 | 16 | public void SetDownState() 17 | { 18 | CrossPlatformInputManager.SetButtonDown(Name); 19 | } 20 | 21 | 22 | public void SetUpState() 23 | { 24 | CrossPlatformInputManager.SetButtonUp(Name); 25 | } 26 | 27 | 28 | public void SetAxisPositiveState() 29 | { 30 | CrossPlatformInputManager.SetAxisPositive(Name); 31 | } 32 | 33 | 34 | public void SetAxisNeutralState() 35 | { 36 | CrossPlatformInputManager.SetAxisZero(Name); 37 | } 38 | 39 | 40 | public void SetAxisNegativeState() 41 | { 42 | CrossPlatformInputManager.SetAxisNegative(Name); 43 | } 44 | 45 | public void Update() 46 | { 47 | 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts/ButtonHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85bf3be603548374ca46f521a3aa7fda 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts/CrossPlatformInputManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ac1ce5a5adfd9f46adbf5b6f752a47c 3 | labels: 4 | - Done 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: -1010 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts/InputAxisScrollbar.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityStandardAssets.CrossPlatformInput 5 | { 6 | public class InputAxisScrollbar : MonoBehaviour 7 | { 8 | public string axis; 9 | 10 | void Update() { } 11 | 12 | public void HandleInput(float value) 13 | { 14 | CrossPlatformInputManager.SetAxis(axis, (value*2f) - 1f); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts/InputAxisScrollbar.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d3269566d48b8447bb48d2259e28f8b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts/Joystick.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 00c3c865782347f41b6358d9fba14b48 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts/MobileControlRig.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | #if UNITY_EDITOR 3 | using UnityEditor; 4 | #endif 5 | using UnityEngine; 6 | 7 | 8 | namespace UnityStandardAssets.CrossPlatformInput 9 | { 10 | [ExecuteInEditMode] 11 | public class MobileControlRig : MonoBehaviour 12 | #if UNITY_EDITOR 13 | , UnityEditor.Build.IActiveBuildTargetChanged 14 | #endif 15 | { 16 | // this script enables or disables the child objects of a control rig 17 | // depending on whether the USE_MOBILE_INPUT define is declared. 18 | 19 | // This define is set or unset by a menu item that is included with 20 | // the Cross Platform Input package. 21 | 22 | 23 | #if !UNITY_EDITOR 24 | void OnEnable() 25 | { 26 | CheckEnableControlRig(); 27 | } 28 | #else 29 | public int callbackOrder 30 | { 31 | get 32 | { 33 | return 1; 34 | } 35 | } 36 | #endif 37 | 38 | private void Start() 39 | { 40 | #if UNITY_EDITOR 41 | if (Application.isPlaying) //if in the editor, need to check if we are playing, as start is also called just after exiting play 42 | #endif 43 | { 44 | UnityEngine.EventSystems.EventSystem system = GameObject.FindObjectOfType(); 45 | 46 | if (system == null) 47 | {//the scene have no event system, spawn one 48 | GameObject o = new GameObject("EventSystem"); 49 | 50 | o.AddComponent(); 51 | o.AddComponent(); 52 | } 53 | } 54 | } 55 | 56 | #if UNITY_EDITOR 57 | 58 | private void OnEnable() 59 | { 60 | EditorApplication.update += Update; 61 | } 62 | 63 | 64 | private void OnDisable() 65 | { 66 | EditorApplication.update -= Update; 67 | } 68 | 69 | 70 | private void Update() 71 | { 72 | CheckEnableControlRig(); 73 | } 74 | #endif 75 | 76 | 77 | private void CheckEnableControlRig() 78 | { 79 | #if MOBILE_INPUT 80 | EnableControlRig(true); 81 | #else 82 | EnableControlRig(false); 83 | #endif 84 | } 85 | 86 | 87 | private void EnableControlRig(bool enabled) 88 | { 89 | foreach (Transform t in transform) 90 | { 91 | t.gameObject.SetActive(enabled); 92 | } 93 | } 94 | 95 | #if UNITY_EDITOR 96 | public void OnActiveBuildTargetChanged(BuildTarget previousTarget, BuildTarget newTarget) 97 | { 98 | CheckEnableControlRig(); 99 | } 100 | #endif 101 | } 102 | } -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts/MobileControlRig.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 71398ce7fbc3a5b4fa50b50bd54317a7 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts/PlatformSpecific.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0bc72db1e9dcb9647818df5a07871127 3 | folderAsset: yes 4 | timeCreated: 1436977288 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts/PlatformSpecific/MobileInput.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9703d53e47195aa4190acd11369ccd1b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts/PlatformSpecific/StandaloneInput.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityStandardAssets.CrossPlatformInput.PlatformSpecific 5 | { 6 | public class StandaloneInput : VirtualInput 7 | { 8 | public override float GetAxis(string name, bool raw) 9 | { 10 | return raw ? Input.GetAxisRaw(name) : Input.GetAxis(name); 11 | } 12 | 13 | 14 | public override bool GetButton(string name) 15 | { 16 | return Input.GetButton(name); 17 | } 18 | 19 | 20 | public override bool GetButtonDown(string name) 21 | { 22 | return Input.GetButtonDown(name); 23 | } 24 | 25 | 26 | public override bool GetButtonUp(string name) 27 | { 28 | return Input.GetButtonUp(name); 29 | } 30 | 31 | 32 | public override void SetButtonDown(string name) 33 | { 34 | throw new Exception( 35 | " This is not possible to be called for standalone input. Please check your platform and code where this is called"); 36 | } 37 | 38 | 39 | public override void SetButtonUp(string name) 40 | { 41 | throw new Exception( 42 | " This is not possible to be called for standalone input. Please check your platform and code where this is called"); 43 | } 44 | 45 | 46 | public override void SetAxisPositive(string name) 47 | { 48 | throw new Exception( 49 | " This is not possible to be called for standalone input. Please check your platform and code where this is called"); 50 | } 51 | 52 | 53 | public override void SetAxisNegative(string name) 54 | { 55 | throw new Exception( 56 | " This is not possible to be called for standalone input. Please check your platform and code where this is called"); 57 | } 58 | 59 | 60 | public override void SetAxisZero(string name) 61 | { 62 | throw new Exception( 63 | " This is not possible to be called for standalone input. Please check your platform and code where this is called"); 64 | } 65 | 66 | 67 | public override void SetAxis(string name, float value) 68 | { 69 | throw new Exception( 70 | " This is not possible to be called for standalone input. Please check your platform and code where this is called"); 71 | } 72 | 73 | 74 | public override Vector3 MousePosition() 75 | { 76 | return Input.mousePosition; 77 | } 78 | } 79 | } -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts/PlatformSpecific/StandaloneInput.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9961032f4f02c4f41997c3ea399d2f22 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts/TiltInput.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c2d84226fbbaf94e9c1451f1c39b06a 3 | labels: 4 | - Not 5 | - Fully 6 | - Implemented 7 | MonoImporter: 8 | serializedVersion: 2 9 | defaultReferences: [] 10 | executionOrder: -1001 11 | icon: {instanceID: 0} 12 | userData: 13 | assetBundleName: 14 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts/TouchPad.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1caf40fc8bebb6b43b2550c05ca791d6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Scripts/VirtualInput.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f57aeb1b8dce3342bea5c28ac17db24 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1835e4537efbdd94b93c2dd136860f1d 3 | folderAsset: yes 4 | timeCreated: 1436977288 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonAcceleratorOverSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:731624c0ce04c81533a2753a82c6c2e2cdcf9242fa23587aea305bc9027e4b6f 3 | size 10618 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonAcceleratorOverSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eb5f6e2757c821940b69cf1456f7865a 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 256 29 | textureSettings: 30 | filterMode: 1 31 | aniso: 16 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 1 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 8 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonAcceleratorUpSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:4faa35dad3ddc49351851fdc8ffc121e490aa4c18d08c1b9dbd62bddb7d64c3c 3 | size 10747 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonAcceleratorUpSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f588d850485d0ae479d73cf3bd0b7b00 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 256 29 | textureSettings: 30 | filterMode: 1 31 | aniso: 16 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 1 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 8 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonArrowOverSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:cc83c3b9052225c844fe4056d5f8ce2253bd4c18288fee7fd2a4ff61fb672720 3 | size 8229 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonArrowOverSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 49b611e658efbf443b686a4036f74fe3 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 256 29 | textureSettings: 30 | filterMode: 1 31 | aniso: 16 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 1 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 8 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonArrowUpSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:b50e092ba09b7bebf25dba02d50238cd1e8278047184433878381ea7d86fd195 3 | size 8376 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonArrowUpSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4db017495c69e8140a56a0e2b669e3f8 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 256 29 | textureSettings: 30 | filterMode: 1 31 | aniso: 16 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 1 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 8 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonBrakeOverSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:507b9d17ddf5975ab62066ba29e0d2079e2847028e8482f59006495c01df5f76 3 | size 5818 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonBrakeOverSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b1a64ea234fb2343b8d0686c51280de 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 256 29 | textureSettings: 30 | filterMode: 1 31 | aniso: 16 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 1 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 8 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonBrakeUpSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:c8ede8c5c1be15cd249fb70313c2f91baaba056b3bdc2e5e37d127c94c0ddc28 3 | size 5873 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonBrakeUpSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 827c9cd4a3943534f909ac6473e17288 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 256 29 | textureSettings: 30 | filterMode: 1 31 | aniso: 16 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 1 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 8 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonCameraCycleUpSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:50e2489930711789196419ec160b6fecce26bfb43120078ab2079a22afe4075f 3 | size 5764 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonCameraCycleUpSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3983c59ebf804b4abba687bd7c9e92f 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 256 29 | textureSettings: 30 | filterMode: 1 31 | aniso: 16 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 1 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 8 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonResetSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:c7c29092ea1a0a7f5d1d5c9fd78f17cb9826e90438d012d8f53842a9b6a572f8 3 | size 8412 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonResetSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a94c9a7eb94ceec4a8d67a1890e22e51 3 | TextureImporter: 4 | fileIDToRecycleName: 5 | 21300000: ResetButton 6 | serializedVersion: 2 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | linearTexture: 0 11 | correctGamma: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapFadeDistanceStart: 1 15 | mipMapFadeDistanceEnd: 3 16 | bumpmap: 17 | convertToNormalMap: 0 18 | externalNormalMap: 0 19 | heightScale: .25 20 | normalMapFilter: 0 21 | isReadable: 0 22 | grayScaleToAlpha: 0 23 | generateCubemap: 0 24 | cubemapConvolution: 0 25 | cubemapConvolutionSteps: 8 26 | cubemapConvolutionExponent: 1.5 27 | seamlessCubemap: 0 28 | textureFormat: -1 29 | maxTextureSize: 256 30 | textureSettings: 31 | filterMode: 1 32 | aniso: 16 33 | mipBias: -1 34 | wrapMode: 1 35 | nPOTScale: 0 36 | lightmap: 0 37 | rGBM: 0 38 | compressionQuality: 50 39 | spriteMode: 1 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 0 43 | spritePivot: {x: .5, y: .5} 44 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 45 | spritePixelsToUnits: 100 46 | alphaIsTransparency: 1 47 | textureType: 8 48 | buildTargetSettings: [] 49 | spriteSheet: 50 | sprites: [] 51 | spritePackingTag: 52 | userData: 53 | assetBundleName: 54 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonSpacebarSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:6d387b0c9e0afe86c0238d416571142ce6b7f472c99ca7b08e62770f2537a24d 3 | size 3471 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonSpacebarSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d8675433a508ec47b8f895201eacf20 3 | TextureImporter: 4 | fileIDToRecycleName: 5 | 21300000: JumpButton 6 | serializedVersion: 2 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | linearTexture: 0 11 | correctGamma: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapFadeDistanceStart: 1 15 | mipMapFadeDistanceEnd: 3 16 | bumpmap: 17 | convertToNormalMap: 0 18 | externalNormalMap: 0 19 | heightScale: .25 20 | normalMapFilter: 0 21 | isReadable: 0 22 | grayScaleToAlpha: 0 23 | generateCubemap: 0 24 | cubemapConvolution: 0 25 | cubemapConvolutionSteps: 8 26 | cubemapConvolutionExponent: 1.5 27 | seamlessCubemap: 0 28 | textureFormat: -1 29 | maxTextureSize: 1024 30 | textureSettings: 31 | filterMode: 1 32 | aniso: 16 33 | mipBias: -1 34 | wrapMode: 1 35 | nPOTScale: 0 36 | lightmap: 0 37 | rGBM: 0 38 | compressionQuality: 50 39 | spriteMode: 1 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 0 43 | spritePivot: {x: .5, y: .5} 44 | spriteBorder: {x: 40, y: 40, z: 40, w: 40} 45 | spritePixelsToUnits: 100 46 | alphaIsTransparency: 1 47 | textureType: 8 48 | buildTargetSettings: [] 49 | spriteSheet: 50 | sprites: [] 51 | spritePackingTag: 52 | userData: 53 | assetBundleName: 54 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonThumbstickOverSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:9c3176293b5cb4fd99df849e88c75512a427c5963c8330aa246bbc732ae217f8 3 | size 8099 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonThumbstickOverSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5485e2f56028a3c4cb54f5caa167377e 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 256 29 | textureSettings: 30 | filterMode: 1 31 | aniso: 16 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 1 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 8 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonThumbstickUpSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:05b4d38f3d5613504e5ae29db30bb90c8ab0ba7ec1ab0e49a5fe64697a17b028 3 | size 8278 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonThumbstickUpSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9866a92691696b346901281f2b329034 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 256 29 | textureSettings: 30 | filterMode: 1 31 | aniso: 16 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 1 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 8 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonTimescaleFullUpSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:d4154a3a3d9d874c6cc79f14fd6603881d1896d2a9ee310c10c945c0af173c43 3 | size 8409 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonTimescaleFullUpSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c6271a290ef75b4c97d58746c86c5b8 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 256 29 | textureSettings: 30 | filterMode: 1 31 | aniso: 16 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 1 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 8 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonTimescaleSlowUpSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:b4c6f2ed13d3307de5b14865212bc9e724dc01bca574f262c4d81ea19d3d87d4 3 | size 9144 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/ButtonTimescaleSlowUpSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d7c6e4896067aa4fa512a00f692ac1c 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 256 29 | textureSettings: 30 | filterMode: 1 31 | aniso: 16 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 1 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 8 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/SliderBackgroundSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:7635349b2247469e3d8efe01c6592522107086207bec37b1ef70c2972ae7de8b 3 | size 2309 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/SliderBackgroundSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ea5873cfd9158664f89459f0c9e1d853 3 | TextureImporter: 4 | fileIDToRecycleName: 5 | 21300000: SliderBackground 6 | serializedVersion: 2 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | linearTexture: 0 11 | correctGamma: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapFadeDistanceStart: 1 15 | mipMapFadeDistanceEnd: 3 16 | bumpmap: 17 | convertToNormalMap: 0 18 | externalNormalMap: 0 19 | heightScale: .25 20 | normalMapFilter: 0 21 | isReadable: 0 22 | grayScaleToAlpha: 0 23 | generateCubemap: 0 24 | cubemapConvolution: 0 25 | cubemapConvolutionSteps: 8 26 | cubemapConvolutionExponent: 1.5 27 | seamlessCubemap: 0 28 | textureFormat: -1 29 | maxTextureSize: 256 30 | textureSettings: 31 | filterMode: 1 32 | aniso: 16 33 | mipBias: -1 34 | wrapMode: 1 35 | nPOTScale: 0 36 | lightmap: 0 37 | rGBM: 0 38 | compressionQuality: 50 39 | spriteMode: 1 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 0 43 | spritePivot: {x: .5, y: .5} 44 | spriteBorder: {x: 31, y: 15, z: 31, w: 15} 45 | spritePixelsToUnits: 100 46 | alphaIsTransparency: 1 47 | textureType: 8 48 | buildTargetSettings: [] 49 | spriteSheet: 50 | sprites: [] 51 | spritePackingTag: 52 | userData: 53 | assetBundleName: 54 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/SliderHandleSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:c5de86bff8be92454f9d7f778175cda98f39859960218876f43ff9db4599c276 3 | size 1671 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/SliderHandleSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0626b924325d1c34cafa6b22297f4e4f 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 256 29 | textureSettings: 30 | filterMode: 1 31 | aniso: 16 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 1 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 8 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/TouchpadSprite.png: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:f5be8858b9e94f3181dcac3be0921473ea2cea7af169d84ecf12e097ce01465a 3 | size 3828 4 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CrossPlatformInput/Sprites/TouchpadSprite.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4f1fee3de32377429fd1348fae62b10 3 | TextureImporter: 4 | fileIDToRecycleName: 5 | 21300000: JumpButton 6 | serializedVersion: 2 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | linearTexture: 0 11 | correctGamma: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapFadeDistanceStart: 1 15 | mipMapFadeDistanceEnd: 3 16 | bumpmap: 17 | convertToNormalMap: 0 18 | externalNormalMap: 0 19 | heightScale: .25 20 | normalMapFilter: 0 21 | isReadable: 0 22 | grayScaleToAlpha: 0 23 | generateCubemap: 0 24 | cubemapConvolution: 0 25 | cubemapConvolutionSteps: 8 26 | cubemapConvolutionExponent: 1.5 27 | seamlessCubemap: 0 28 | textureFormat: -1 29 | maxTextureSize: 1024 30 | textureSettings: 31 | filterMode: 1 32 | aniso: 16 33 | mipBias: -1 34 | wrapMode: 1 35 | nPOTScale: 0 36 | lightmap: 0 37 | rGBM: 0 38 | compressionQuality: 50 39 | spriteMode: 1 40 | spriteExtrude: 1 41 | spriteMeshType: 1 42 | alignment: 0 43 | spritePivot: {x: .5, y: .5} 44 | spriteBorder: {x: 65, y: 65, z: 65, w: 65} 45 | spritePixelsToUnits: 100 46 | alphaIsTransparency: 1 47 | textureType: 8 48 | buildTargetSettings: [] 49 | spriteSheet: 50 | sprites: [] 51 | spritePackingTag: 52 | userData: 53 | assetBundleName: 54 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 681cb55d41ef540eb94bfb8902905141 3 | folderAsset: yes 4 | timeCreated: 1534192078 5 | licenseType: Free 6 | DefaultImporter: 7 | externalObjects: {} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Editor/CrossPlatformInput.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 696c0e7b8c74e1442acbf15c2df9e72d 3 | folderAsset: yes 4 | timeCreated: 1436977288 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Editor/CrossPlatformInput/CrossPlatformInputInitialize.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: db7667203062c644ea1877077e30ebd6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4539eb30e895bbb41b5eae6df2dde978 3 | folderAsset: yes 4 | timeCreated: 1436977288 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/ActivateTrigger.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8634e062924929664361c08745211fb 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/AlphaButtonClickMask.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.UI; 3 | using System.Collections; 4 | 5 | public class AlphaButtonClickMask : MonoBehaviour, ICanvasRaycastFilter 6 | { 7 | protected Image _image; 8 | 9 | public void Start() 10 | { 11 | _image = GetComponent(); 12 | 13 | Texture2D tex = _image.sprite.texture as Texture2D; 14 | 15 | bool isInvalid = false; 16 | if (tex != null) 17 | { 18 | try 19 | { 20 | tex.GetPixels32(); 21 | } 22 | catch (UnityException e) 23 | { 24 | Debug.LogError(e.Message); 25 | isInvalid = true; 26 | } 27 | } 28 | else 29 | { 30 | isInvalid = true; 31 | } 32 | 33 | if (isInvalid) 34 | { 35 | Debug.LogError("This script need an Image with a readbale Texture2D to work."); 36 | } 37 | } 38 | 39 | public bool IsRaycastLocationValid(Vector2 sp, Camera eventCamera) 40 | { 41 | Vector2 localPoint; 42 | RectTransformUtility.ScreenPointToLocalPointInRectangle(_image.rectTransform, sp, eventCamera, out localPoint); 43 | 44 | Vector2 pivot = _image.rectTransform.pivot; 45 | Vector2 normalizedLocal = new Vector2(pivot.x + localPoint.x / _image.rectTransform.rect.width, pivot.y + localPoint.y / _image.rectTransform.rect.height); 46 | Vector2 uv = new Vector2( 47 | _image.sprite.rect.x + normalizedLocal.x * _image.sprite.rect.width, 48 | _image.sprite.rect.y + normalizedLocal.y * _image.sprite.rect.height ); 49 | 50 | uv.x /= _image.sprite.texture.width; 51 | uv.y /= _image.sprite.texture.height; 52 | 53 | //uv are inversed, as 0,0 or the rect transform seem to be upper right, then going negativ toward lower left... 54 | Color c = _image.sprite.texture.GetPixelBilinear(uv.x, uv.y); 55 | 56 | return c.a> 0.1f; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/AlphaButtonClickMask.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 971f44ba24a74294294daed00507d80e 3 | timeCreated: 1436868016 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/AutoMobileShaderSwitch.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c4978ff6447f9040b84acc89b0bbdc8 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/AutoMoveAndRotate.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityStandardAssets.Utility 5 | { 6 | public class AutoMoveAndRotate : MonoBehaviour 7 | { 8 | public Vector3andSpace moveUnitsPerSecond; 9 | public Vector3andSpace rotateDegreesPerSecond; 10 | public bool ignoreTimescale; 11 | private float m_LastRealTime; 12 | 13 | 14 | private void Start() 15 | { 16 | m_LastRealTime = Time.realtimeSinceStartup; 17 | } 18 | 19 | 20 | // Update is called once per frame 21 | private void Update() 22 | { 23 | float deltaTime = Time.deltaTime; 24 | if (ignoreTimescale) 25 | { 26 | deltaTime = (Time.realtimeSinceStartup - m_LastRealTime); 27 | m_LastRealTime = Time.realtimeSinceStartup; 28 | } 29 | transform.Translate(moveUnitsPerSecond.value*deltaTime, moveUnitsPerSecond.space); 30 | transform.Rotate(rotateDegreesPerSecond.value*deltaTime, moveUnitsPerSecond.space); 31 | } 32 | 33 | 34 | [Serializable] 35 | public class Vector3andSpace 36 | { 37 | public Vector3 value; 38 | public Space space = Space.Self; 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/AutoMoveAndRotate.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a1347817507220a4384f3ff6f7c24546 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/CameraRefocus.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityStandardAssets.Utility 5 | { 6 | public class CameraRefocus 7 | { 8 | public Camera Camera; 9 | public Vector3 Lookatpoint; 10 | public Transform Parent; 11 | 12 | private Vector3 m_OrigCameraPos; 13 | private bool m_Refocus; 14 | 15 | 16 | public CameraRefocus(Camera camera, Transform parent, Vector3 origCameraPos) 17 | { 18 | m_OrigCameraPos = origCameraPos; 19 | Camera = camera; 20 | Parent = parent; 21 | } 22 | 23 | 24 | public void ChangeCamera(Camera camera) 25 | { 26 | Camera = camera; 27 | } 28 | 29 | 30 | public void ChangeParent(Transform parent) 31 | { 32 | Parent = parent; 33 | } 34 | 35 | 36 | public void GetFocusPoint() 37 | { 38 | RaycastHit hitInfo; 39 | if (Physics.Raycast(Parent.transform.position + m_OrigCameraPos, Parent.transform.forward, out hitInfo, 40 | 100f)) 41 | { 42 | Lookatpoint = hitInfo.point; 43 | m_Refocus = true; 44 | return; 45 | } 46 | m_Refocus = false; 47 | } 48 | 49 | 50 | public void SetFocusPoint() 51 | { 52 | if (m_Refocus) 53 | { 54 | Camera.transform.LookAt(Lookatpoint); 55 | } 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/CameraRefocus.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1e2e7a54dcc8694ab1eca46d072f264 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/CurveControlledBob.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | 5 | namespace UnityStandardAssets.Utility 6 | { 7 | [Serializable] 8 | public class CurveControlledBob 9 | { 10 | public float HorizontalBobRange = 0.33f; 11 | public float VerticalBobRange = 0.33f; 12 | public AnimationCurve Bobcurve = new AnimationCurve(new Keyframe(0f, 0f), new Keyframe(0.5f, 1f), 13 | new Keyframe(1f, 0f), new Keyframe(1.5f, -1f), 14 | new Keyframe(2f, 0f)); // sin curve for head bob 15 | public float VerticaltoHorizontalRatio = 1f; 16 | 17 | private float m_CyclePositionX; 18 | private float m_CyclePositionY; 19 | private float m_BobBaseInterval; 20 | private Vector3 m_OriginalCameraPosition; 21 | private float m_Time; 22 | 23 | 24 | public void Setup(Camera camera, float bobBaseInterval) 25 | { 26 | m_BobBaseInterval = bobBaseInterval; 27 | m_OriginalCameraPosition = camera.transform.localPosition; 28 | 29 | // get the length of the curve in time 30 | m_Time = Bobcurve[Bobcurve.length - 1].time; 31 | } 32 | 33 | 34 | public Vector3 DoHeadBob(float speed) 35 | { 36 | float xPos = m_OriginalCameraPosition.x + (Bobcurve.Evaluate(m_CyclePositionX)*HorizontalBobRange); 37 | float yPos = m_OriginalCameraPosition.y + (Bobcurve.Evaluate(m_CyclePositionY)*VerticalBobRange); 38 | 39 | m_CyclePositionX += (speed*Time.deltaTime)/m_BobBaseInterval; 40 | m_CyclePositionY += ((speed*Time.deltaTime)/m_BobBaseInterval)*VerticaltoHorizontalRatio; 41 | 42 | if (m_CyclePositionX > m_Time) 43 | { 44 | m_CyclePositionX = m_CyclePositionX - m_Time; 45 | } 46 | if (m_CyclePositionY > m_Time) 47 | { 48 | m_CyclePositionY = m_CyclePositionY - m_Time; 49 | } 50 | 51 | return new Vector3(xPos, yPos, 0f); 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/CurveControlledBob.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 492f54f4accf00440828ffcb9e4fcc19 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/DragRigidbody.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 58650e15a2607e44daa0f150e0061d89 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/DynamicShadowSettings.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityStandardAssets.Utility 5 | { 6 | public class DynamicShadowSettings : MonoBehaviour 7 | { 8 | public Light sunLight; 9 | public float minHeight = 10; 10 | public float minShadowDistance = 80; 11 | public float minShadowBias = 1; 12 | public float maxHeight = 1000; 13 | public float maxShadowDistance = 10000; 14 | public float maxShadowBias = 0.1f; 15 | public float adaptTime = 1; 16 | 17 | private float m_SmoothHeight; 18 | private float m_ChangeSpeed; 19 | private float m_OriginalStrength = 1; 20 | 21 | 22 | private void Start() 23 | { 24 | m_OriginalStrength = sunLight.shadowStrength; 25 | } 26 | 27 | 28 | // Update is called once per frame 29 | private void Update() 30 | { 31 | Ray ray = new Ray(Camera.main.transform.position, -Vector3.up); 32 | RaycastHit hit; 33 | float height = transform.position.y; 34 | if (Physics.Raycast(ray, out hit)) 35 | { 36 | height = hit.distance; 37 | } 38 | 39 | if (Mathf.Abs(height - m_SmoothHeight) > 1) 40 | { 41 | m_SmoothHeight = Mathf.SmoothDamp(m_SmoothHeight, height, ref m_ChangeSpeed, adaptTime); 42 | } 43 | 44 | float i = Mathf.InverseLerp(minHeight, maxHeight, m_SmoothHeight); 45 | 46 | QualitySettings.shadowDistance = Mathf.Lerp(minShadowDistance, maxShadowDistance, i); 47 | sunLight.shadowBias = Mathf.Lerp(minShadowBias, maxShadowBias, 1 - ((1 - i)*(1 - i))); 48 | sunLight.shadowStrength = Mathf.Lerp(m_OriginalStrength, 0, i); 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/DynamicShadowSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8566902b50d5bfb4fb7f8b89f9cdbe8b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/EventSystemChecker.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using UnityEngine; 4 | using UnityEngine.EventSystems; 5 | 6 | public class EventSystemChecker : MonoBehaviour 7 | { 8 | //public GameObject eventSystem; 9 | 10 | // Use this for initialization 11 | void Awake () 12 | { 13 | if(!FindObjectOfType()) 14 | { 15 | //Instantiate(eventSystem); 16 | GameObject obj = new GameObject("EventSystem"); 17 | obj.AddComponent(); 18 | obj.AddComponent().forceModuleActive = true; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/EventSystemChecker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c0578910bbe00d43919a92c7b9893fe 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/FOVKick.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using UnityEngine; 4 | 5 | namespace UnityStandardAssets.Utility 6 | { 7 | [Serializable] 8 | public class FOVKick 9 | { 10 | public Camera Camera; // optional camera setup, if null the main camera will be used 11 | [HideInInspector] public float originalFov; // the original fov 12 | public float FOVIncrease = 3f; // the amount the field of view increases when going into a run 13 | public float TimeToIncrease = 1f; // the amount of time the field of view will increase over 14 | public float TimeToDecrease = 1f; // the amount of time the field of view will take to return to its original size 15 | public AnimationCurve IncreaseCurve; 16 | 17 | 18 | public void Setup(Camera camera) 19 | { 20 | CheckStatus(camera); 21 | 22 | Camera = camera; 23 | originalFov = camera.fieldOfView; 24 | } 25 | 26 | 27 | private void CheckStatus(Camera camera) 28 | { 29 | if (camera == null) 30 | { 31 | throw new Exception("FOVKick camera is null, please supply the camera to the constructor"); 32 | } 33 | 34 | if (IncreaseCurve == null) 35 | { 36 | throw new Exception( 37 | "FOVKick Increase curve is null, please define the curve for the field of view kicks"); 38 | } 39 | } 40 | 41 | 42 | public void ChangeCamera(Camera camera) 43 | { 44 | Camera = camera; 45 | } 46 | 47 | 48 | public IEnumerator FOVKickUp() 49 | { 50 | float t = Mathf.Abs((Camera.fieldOfView - originalFov)/FOVIncrease); 51 | while (t < TimeToIncrease) 52 | { 53 | Camera.fieldOfView = originalFov + (IncreaseCurve.Evaluate(t/TimeToIncrease)*FOVIncrease); 54 | t += Time.deltaTime; 55 | yield return new WaitForEndOfFrame(); 56 | } 57 | } 58 | 59 | 60 | public IEnumerator FOVKickDown() 61 | { 62 | float t = Mathf.Abs((Camera.fieldOfView - originalFov)/FOVIncrease); 63 | while (t > 0) 64 | { 65 | Camera.fieldOfView = originalFov + (IncreaseCurve.Evaluate(t/TimeToDecrease)*FOVIncrease); 66 | t -= Time.deltaTime; 67 | yield return new WaitForEndOfFrame(); 68 | } 69 | //make sure that fov returns to the original size 70 | Camera.fieldOfView = originalFov; 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/FOVKick.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6045a93fb05b9c74884821030da2c46c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/FPSCounter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UnityEngine.UI; 4 | 5 | namespace UnityStandardAssets.Utility 6 | { 7 | [RequireComponent(typeof (Text))] 8 | public class FPSCounter : MonoBehaviour 9 | { 10 | const float fpsMeasurePeriod = 0.5f; 11 | private int m_FpsAccumulator = 0; 12 | private float m_FpsNextPeriod = 0; 13 | private int m_CurrentFps; 14 | const string display = "{0} FPS"; 15 | private Text m_Text; 16 | 17 | 18 | private void Start() 19 | { 20 | m_FpsNextPeriod = Time.realtimeSinceStartup + fpsMeasurePeriod; 21 | m_Text = GetComponent(); 22 | } 23 | 24 | 25 | private void Update() 26 | { 27 | // measure average frames per second 28 | m_FpsAccumulator++; 29 | if (Time.realtimeSinceStartup > m_FpsNextPeriod) 30 | { 31 | m_CurrentFps = (int) (m_FpsAccumulator/fpsMeasurePeriod); 32 | m_FpsAccumulator = 0; 33 | m_FpsNextPeriod += fpsMeasurePeriod; 34 | m_Text.text = string.Format(display, m_CurrentFps); 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/FPSCounter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 22bbf57ec543cee42a5aa0ec2dd9e457 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/FollowTarget.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | 5 | namespace UnityStandardAssets.Utility 6 | { 7 | public class FollowTarget : MonoBehaviour 8 | { 9 | public Transform target; 10 | public Vector3 offset = new Vector3(0f, 7.5f, 0f); 11 | 12 | 13 | private void LateUpdate() 14 | { 15 | transform.position = target.position + offset; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/FollowTarget.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 246cc59c7a84ea44f87f6b70acfe30c5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/ForcedReset.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UnityEngine.SceneManagement; 4 | using UnityStandardAssets.CrossPlatformInput; 5 | 6 | [RequireComponent(typeof (GUITexture))] 7 | public class ForcedReset : MonoBehaviour 8 | { 9 | private void Update() 10 | { 11 | // if we have forced a reset ... 12 | if (CrossPlatformInputManager.GetButtonDown("ResetObject")) 13 | { 14 | //... reload the scene 15 | SceneManager.LoadScene(SceneManager.GetSceneAt(0).name); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/ForcedReset.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b886447cba80f74e820adb3c9e70c76 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/LerpControlledBob.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using UnityEngine; 4 | 5 | namespace UnityStandardAssets.Utility 6 | { 7 | [Serializable] 8 | public class LerpControlledBob 9 | { 10 | public float BobDuration; 11 | public float BobAmount; 12 | 13 | private float m_Offset = 0f; 14 | 15 | 16 | // provides the offset that can be used 17 | public float Offset() 18 | { 19 | return m_Offset; 20 | } 21 | 22 | 23 | public IEnumerator DoBobCycle() 24 | { 25 | // make the camera move down slightly 26 | float t = 0f; 27 | while (t < BobDuration) 28 | { 29 | m_Offset = Mathf.Lerp(0f, BobAmount, t/BobDuration); 30 | t += Time.deltaTime; 31 | yield return new WaitForFixedUpdate(); 32 | } 33 | 34 | // make it move back to neutral 35 | t = 0f; 36 | while (t < BobDuration) 37 | { 38 | m_Offset = Mathf.Lerp(BobAmount, 0f, t/BobDuration); 39 | t += Time.deltaTime; 40 | yield return new WaitForFixedUpdate(); 41 | } 42 | m_Offset = 0f; 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/LerpControlledBob.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1bbfafbde15c854681023b9e01e12dd 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/ObjectResetter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | 6 | namespace UnityStandardAssets.Utility 7 | { 8 | public class ObjectResetter : MonoBehaviour 9 | { 10 | private Vector3 originalPosition; 11 | private Quaternion originalRotation; 12 | private List originalStructure; 13 | 14 | private Rigidbody Rigidbody; 15 | 16 | // Use this for initialization 17 | private void Start() 18 | { 19 | originalStructure = new List(GetComponentsInChildren()); 20 | originalPosition = transform.position; 21 | originalRotation = transform.rotation; 22 | 23 | Rigidbody = GetComponent(); 24 | } 25 | 26 | 27 | public void DelayedReset(float delay) 28 | { 29 | StartCoroutine(ResetCoroutine(delay)); 30 | } 31 | 32 | 33 | public IEnumerator ResetCoroutine(float delay) 34 | { 35 | yield return new WaitForSeconds(delay); 36 | 37 | // remove any gameobjects added (fire, skid trails, etc) 38 | foreach (var t in GetComponentsInChildren()) 39 | { 40 | if (!originalStructure.Contains(t)) 41 | { 42 | t.parent = null; 43 | } 44 | } 45 | 46 | transform.position = originalPosition; 47 | transform.rotation = originalRotation; 48 | if (Rigidbody) 49 | { 50 | Rigidbody.velocity = Vector3.zero; 51 | Rigidbody.angularVelocity = Vector3.zero; 52 | } 53 | 54 | SendMessage("Reset"); 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/ObjectResetter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 643c971818f68d3439e84b5d8bdafe07 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/ParticleSystemDestroyer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using UnityEngine; 4 | using Random = UnityEngine.Random; 5 | 6 | namespace UnityStandardAssets.Utility 7 | { 8 | public class ParticleSystemDestroyer : MonoBehaviour 9 | { 10 | // allows a particle system to exist for a specified duration, 11 | // then shuts off emission, and waits for all particles to expire 12 | // before destroying the gameObject 13 | 14 | public float minDuration = 8; 15 | public float maxDuration = 10; 16 | 17 | private float m_MaxLifetime; 18 | private bool m_EarlyStop; 19 | 20 | 21 | private IEnumerator Start() 22 | { 23 | var systems = GetComponentsInChildren(); 24 | 25 | // find out the maximum lifetime of any particles in this effect 26 | foreach (var system in systems) 27 | { 28 | m_MaxLifetime = Mathf.Max(system.main.startLifetime.constant, m_MaxLifetime); 29 | } 30 | 31 | // wait for random duration 32 | 33 | float stopTime = Time.time + Random.Range(minDuration, maxDuration); 34 | 35 | while (Time.time < stopTime && !m_EarlyStop) 36 | { 37 | yield return null; 38 | } 39 | Debug.Log("stopping " + name); 40 | 41 | // turn off emission 42 | foreach (var system in systems) 43 | { 44 | var emission = system.emission; 45 | emission.enabled = false; 46 | } 47 | BroadcastMessage("Extinguish", SendMessageOptions.DontRequireReceiver); 48 | 49 | // wait for any remaining particles to expire 50 | yield return new WaitForSeconds(m_MaxLifetime); 51 | 52 | Destroy(gameObject); 53 | } 54 | 55 | 56 | public void Stop() 57 | { 58 | // stops the particle system early 59 | m_EarlyStop = true; 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/ParticleSystemDestroyer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 29014cd42b6d273408e0ceefd336c0b3 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/PlatformSpecificContent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | #if UNITY_EDITOR 4 | using UnityEditor; 5 | #endif 6 | 7 | namespace UnityStandardAssets.Utility 8 | { 9 | #if UNITY_EDITOR 10 | 11 | [ExecuteInEditMode] 12 | #endif 13 | public class PlatformSpecificContent : MonoBehaviour 14 | #if UNITY_EDITOR 15 | , UnityEditor.Build.IActiveBuildTargetChanged 16 | #endif 17 | { 18 | private enum BuildTargetGroup 19 | { 20 | Standalone, 21 | Mobile 22 | } 23 | 24 | [SerializeField] 25 | private BuildTargetGroup m_BuildTargetGroup; 26 | [SerializeField] 27 | private GameObject[] m_Content = new GameObject[0]; 28 | [SerializeField] 29 | private MonoBehaviour[] m_MonoBehaviours = new MonoBehaviour[0]; 30 | [SerializeField] 31 | private bool m_ChildrenOfThisObject; 32 | 33 | #if !UNITY_EDITOR 34 | void OnEnable() 35 | { 36 | CheckEnableContent(); 37 | } 38 | #else 39 | public int callbackOrder 40 | { 41 | get 42 | { 43 | return 1; 44 | } 45 | } 46 | #endif 47 | 48 | #if UNITY_EDITOR 49 | 50 | private void OnEnable() 51 | { 52 | EditorApplication.update += Update; 53 | } 54 | 55 | 56 | private void OnDisable() 57 | { 58 | EditorApplication.update -= Update; 59 | } 60 | 61 | public void OnActiveBuildTargetChanged(BuildTarget previousTarget, BuildTarget newTarget) 62 | { 63 | CheckEnableContent(); 64 | } 65 | 66 | private void Update() 67 | { 68 | CheckEnableContent(); 69 | } 70 | #endif 71 | 72 | 73 | private void CheckEnableContent() 74 | { 75 | #if (UNITY_IPHONE || UNITY_ANDROID || UNITY_WP8 || UNITY_TIZEN) 76 | if (m_BuildTargetGroup == BuildTargetGroup.Mobile) 77 | { 78 | EnableContent(true); 79 | } else { 80 | EnableContent(false); 81 | } 82 | #endif 83 | 84 | #if !(UNITY_IPHONE || UNITY_ANDROID || UNITY_WP8 || UNITY_TIZEN) 85 | if (m_BuildTargetGroup == BuildTargetGroup.Mobile) 86 | { 87 | EnableContent(false); 88 | } 89 | else 90 | { 91 | EnableContent(true); 92 | } 93 | #endif 94 | } 95 | 96 | 97 | private void EnableContent(bool enabled) 98 | { 99 | if (m_Content.Length > 0) 100 | { 101 | foreach (var g in m_Content) 102 | { 103 | if (g != null) 104 | { 105 | g.SetActive(enabled); 106 | } 107 | } 108 | } 109 | if (m_ChildrenOfThisObject) 110 | { 111 | foreach (Transform t in transform) 112 | { 113 | t.gameObject.SetActive(enabled); 114 | } 115 | } 116 | if (m_MonoBehaviours.Length > 0) 117 | { 118 | foreach (var monoBehaviour in m_MonoBehaviours) 119 | { 120 | monoBehaviour.enabled = enabled; 121 | } 122 | } 123 | } 124 | } 125 | } -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/PlatformSpecificContent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b27507c5d0efbbd47ac8c1de9a1a0a35 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b43a4ef15621158419a2b639f7a98245 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/Prefabs/FramerateCounter.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 81154777d5417884981849c5243f6c01 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/SimpleActivatorMenu.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityStandardAssets.Utility 5 | { 6 | public class SimpleActivatorMenu : MonoBehaviour 7 | { 8 | // An incredibly simple menu which, when given references 9 | // to gameobjects in the scene 10 | public GUIText camSwitchButton; 11 | public GameObject[] objects; 12 | 13 | 14 | private int m_CurrentActiveObject; 15 | 16 | 17 | private void OnEnable() 18 | { 19 | // active object starts from first in array 20 | m_CurrentActiveObject = 0; 21 | camSwitchButton.text = objects[m_CurrentActiveObject].name; 22 | } 23 | 24 | 25 | public void NextCamera() 26 | { 27 | int nextactiveobject = m_CurrentActiveObject + 1 >= objects.Length ? 0 : m_CurrentActiveObject + 1; 28 | 29 | for (int i = 0; i < objects.Length; i++) 30 | { 31 | objects[i].SetActive(i == nextactiveobject); 32 | } 33 | 34 | m_CurrentActiveObject = nextactiveobject; 35 | camSwitchButton.text = objects[m_CurrentActiveObject].name; 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/SimpleActivatorMenu.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 69b69a5b0e0a85b4aa97a7edc40c37d1 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/SimpleMouseRotator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cadd54e4832aeef4b9359f44cbe335cd 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/SmoothFollow.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityStandardAssets.Utility 4 | { 5 | public class SmoothFollow : MonoBehaviour 6 | { 7 | 8 | // The target we are following 9 | [SerializeField] 10 | private Transform target; 11 | // The distance in the x-z plane to the target 12 | [SerializeField] 13 | private float distance = 10.0f; 14 | // the height we want the camera to be above the target 15 | [SerializeField] 16 | private float height = 5.0f; 17 | 18 | [SerializeField] 19 | private float rotationDamping; 20 | [SerializeField] 21 | private float heightDamping; 22 | 23 | // Use this for initialization 24 | void Start() { } 25 | 26 | // Update is called once per frame 27 | void LateUpdate() 28 | { 29 | // Early out if we don't have a target 30 | if (!target) 31 | return; 32 | 33 | // Calculate the current rotation angles 34 | var wantedRotationAngle = target.eulerAngles.y; 35 | var wantedHeight = target.position.y + height; 36 | 37 | var currentRotationAngle = transform.eulerAngles.y; 38 | var currentHeight = transform.position.y; 39 | 40 | // Damp the rotation around the y-axis 41 | currentRotationAngle = Mathf.LerpAngle(currentRotationAngle, wantedRotationAngle, rotationDamping * Time.deltaTime); 42 | 43 | // Damp the height 44 | currentHeight = Mathf.Lerp(currentHeight, wantedHeight, heightDamping * Time.deltaTime); 45 | 46 | // Convert the angle into a rotation 47 | var currentRotation = Quaternion.Euler(0, currentRotationAngle, 0); 48 | 49 | // Set the position of the camera on the x-z plane to: 50 | // distance meters behind the target 51 | transform.position = target.position; 52 | transform.position -= currentRotation * Vector3.forward * distance; 53 | 54 | // Set the height of the camera 55 | transform.position = new Vector3(transform.position.x ,currentHeight , transform.position.z); 56 | 57 | // Always look at the target 58 | transform.LookAt(target); 59 | } 60 | } 61 | } -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/SmoothFollow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f76806479d916a64aa03f8e3eba7912f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/TimedObjectActivator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a7cedf246fca744f90cbdc9dbe41166 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/TimedObjectDestructor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityStandardAssets.Utility 5 | { 6 | public class TimedObjectDestructor : MonoBehaviour 7 | { 8 | [SerializeField] private float m_TimeOut = 1.0f; 9 | [SerializeField] private bool m_DetachChildren = false; 10 | 11 | 12 | private void Awake() 13 | { 14 | Invoke("DestroyNow", m_TimeOut); 15 | } 16 | 17 | 18 | private void DestroyNow() 19 | { 20 | if (m_DetachChildren) 21 | { 22 | transform.DetachChildren(); 23 | } 24 | DestroyObject(gameObject); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/TimedObjectDestructor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 37fac21d1f093d344816942d1abce94e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/WaypointCircuit.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70852dc981465ea48bb527b9e33a87fd 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Utility/WaypointProgressTracker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5cb22d331ef7d64796f917c6a455a32 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Demo.mov: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jgbakke/Unity-Dialogue-Example/99da73701800c55193133b4362cbf9f07c361511/Demo.mov -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffc9fcfffffdfffffffffffffffdfffffffdfffffffffffffffffffffffdfcfffffdfeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 1 23 | m_ClothInterCollisionSettingsToggle: 0 24 | m_ContactPairsMode: 0 25 | m_BroadphaseType: 0 26 | m_WorldBounds: 27 | m_Center: {x: 0, y: 0, z: 0} 28 | m_Extent: {x: 250, y: 250, z: 250} 29 | m_WorldSubdivisions: 8 30 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 1 10 | m_DefaultBehaviorMode: 1 11 | m_SpritePackerMode: 4 12 | m_SpritePackerPaddingPower: 1 13 | m_EtcTextureCompressorBehavior: 1 14 | m_EtcTextureFastCompressor: 1 15 | m_EtcTextureNormalCompressor: 2 16 | m_EtcTextureBestCompressor: 4 17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp 18 | m_ProjectGenerationRootNamespace: 19 | m_UserGeneratedProjectSuffix: 20 | m_CollabEditorSettings: 21 | inProgressEnabled: 1 22 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_CustomRenderPipeline: {fileID: 0} 42 | m_TransparencySortMode: 0 43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 44 | m_DefaultRenderingPath: 1 45 | m_DefaultMobileRenderingPath: 1 46 | m_TierSettings: [] 47 | m_LightmapStripping: 0 48 | m_FogStripping: 0 49 | m_InstancingStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_LightsUseLinearIntensity: 0 61 | m_LightsUseColorTemperature: 0 62 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_AutoSimulation: 1 23 | m_QueriesHitTriggers: 1 24 | m_QueriesStartInColliders: 1 25 | m_ChangeStopsCallbacks: 0 26 | m_CallbacksOnDisable: 1 27 | m_AutoSyncTransforms: 1 28 | m_AlwaysShowColliders: 0 29 | m_ShowColliderSleep: 1 30 | m_ShowColliderContacts: 0 31 | m_ShowColliderAABB: 0 32 | m_ContactArrowScale: 0.2 33 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 34 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 35 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 36 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 37 | m_LayerCollisionMatrix: dfffffffc9fcffffddffffffffffffffddffffffc8fcffffffffffffffffffffddfcffffddfeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 38 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2017.3.0f3 2 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: 7 | - NPC 8 | layers: 9 | - Default 10 | - TransparentFX 11 | - Ignore Raycast 12 | - 13 | - Water 14 | - UI 15 | - 16 | - 17 | - NPC 18 | - Player 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | - 41 | m_SortingLayers: 42 | - name: Default 43 | uniqueID: 0 44 | locked: 0 45 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_NativeEventUrl: https://perf-events.cloud.unity3d.com/symbolicate 14 | m_Enabled: 0 15 | m_CaptureEditorExceptions: 1 16 | UnityPurchasingSettings: 17 | m_Enabled: 0 18 | m_TestMode: 0 19 | UnityAnalyticsSettings: 20 | m_Enabled: 0 21 | m_InitializeOnStartup: 1 22 | m_TestMode: 0 23 | m_TestEventUrl: 24 | m_TestConfigUrl: 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /UnityPackageManager/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | } 4 | } 5 | --------------------------------------------------------------------------------