Merge branch 'master' of git.teascade.net:Saltosion/BloodAndGore
This commit is contained in:
		
						commit
						7f5ab91d2f
					
				| @ -19548,6 +19548,7 @@ GameObject: | |||||||
|   - component: {fileID: 963194227} |   - component: {fileID: 963194227} | ||||||
|   - component: {fileID: 963194226} |   - component: {fileID: 963194226} | ||||||
|   - component: {fileID: 963194229} |   - component: {fileID: 963194229} | ||||||
|  |   - component: {fileID: 963194230} | ||||||
|   m_Layer: 0 |   m_Layer: 0 | ||||||
|   m_Name: Main Camera |   m_Name: Main Camera | ||||||
|   m_TagString: MainCamera |   m_TagString: MainCamera | ||||||
| @ -19636,6 +19637,21 @@ MonoBehaviour: | |||||||
|   ShakeHandle: {fileID: 139250670} |   ShakeHandle: {fileID: 139250670} | ||||||
|   CameraTransform: {fileID: 963194228} |   CameraTransform: {fileID: 963194228} | ||||||
|   Camera: {fileID: 963194227} |   Camera: {fileID: 963194227} | ||||||
|  | --- !u!114 &963194230 | ||||||
|  | MonoBehaviour: | ||||||
|  |   m_ObjectHideFlags: 0 | ||||||
|  |   m_CorrespondingSourceObject: {fileID: 0} | ||||||
|  |   m_PrefabInstance: {fileID: 0} | ||||||
|  |   m_PrefabAsset: {fileID: 0} | ||||||
|  |   m_GameObject: {fileID: 963194225} | ||||||
|  |   m_Enabled: 1 | ||||||
|  |   m_EditorHideFlags: 0 | ||||||
|  |   m_Script: {fileID: 11500000, guid: 5192955d4df7c5448a32cf7720b9ce66, type: 3} | ||||||
|  |   m_Name:  | ||||||
|  |   m_EditorClassIdentifier:  | ||||||
|  |   Camera: {fileID: 963194227} | ||||||
|  |   PixelScale: 3 | ||||||
|  |   PixelsPerUnit: 32 | ||||||
| --- !u!1001 &982353464 | --- !u!1001 &982353464 | ||||||
| PrefabInstance: | PrefabInstance: | ||||||
|   m_ObjectHideFlags: 0 |   m_ObjectHideFlags: 0 | ||||||
|  | |||||||
| @ -20,6 +20,8 @@ namespace Saltosion.OneWeapon { | |||||||
|             GetsStuck = Random.value > 0.5; |             GetsStuck = Random.value > 0.5; | ||||||
|             if (Sprites.Length > 0) { |             if (Sprites.Length > 0) { | ||||||
|                 Renderer.sprite = Sprites[(int)(Random.value * int.MaxValue) % Sprites.Length]; |                 Renderer.sprite = Sprites[(int)(Random.value * int.MaxValue) % Sprites.Length]; | ||||||
|  |                 Renderer.flipX = Random.value < 0.5; | ||||||
|  |                 Renderer.flipY = Random.value < 0.5; | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -4,10 +4,18 @@ using UnityEngine; | |||||||
| 
 | 
 | ||||||
| namespace Saltosion.OneWeapon { | namespace Saltosion.OneWeapon { | ||||||
|     public class CameraHelper : MonoBehaviour { |     public class CameraHelper : MonoBehaviour { | ||||||
|         private void Start() { |         public Camera Camera; | ||||||
|         } |         [Range(1, 4)] | ||||||
|  |         public int PixelScale = 2; | ||||||
|  |         public int PixelsPerUnit = 32; | ||||||
|  | 
 | ||||||
|  |         private int LastHeight = -1; | ||||||
| 
 | 
 | ||||||
|         private void Update() { |         private void Update() { | ||||||
|  |             if (LastHeight != Screen.height) { | ||||||
|  |                 Camera.orthographicSize = Screen.height * ((0.5f / PixelsPerUnit) / PixelScale); | ||||||
|  |                 LastHeight = Screen.height; | ||||||
|  |             } | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
| @ -81,7 +81,7 @@ PlayerSettings: | |||||||
|   bakeCollisionMeshes: 0 |   bakeCollisionMeshes: 0 | ||||||
|   forceSingleInstance: 0 |   forceSingleInstance: 0 | ||||||
|   useFlipModelSwapchain: 1 |   useFlipModelSwapchain: 1 | ||||||
|   resizableWindow: 0 |   resizableWindow: 1 | ||||||
|   useMacAppStoreValidation: 0 |   useMacAppStoreValidation: 0 | ||||||
|   macAppStoreCategory: public.app-category.games |   macAppStoreCategory: public.app-category.games | ||||||
|   gpuSkinning: 1 |   gpuSkinning: 1 | ||||||
| @ -120,7 +120,7 @@ PlayerSettings: | |||||||
|     16:10: 1 |     16:10: 1 | ||||||
|     16:9: 1 |     16:9: 1 | ||||||
|     Others: 1 |     Others: 1 | ||||||
|   bundleVersion: 1.0 |   bundleVersion: 2.0-Indev | ||||||
|   preloadedAssets: [] |   preloadedAssets: [] | ||||||
|   metroInputSource: 0 |   metroInputSource: 0 | ||||||
|   wsaTransparentSwapchain: 0 |   wsaTransparentSwapchain: 0 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user