aha
jo
This commit is contained in:
@@ -4052,6 +4052,7 @@ GameObject:
|
|||||||
- component: {fileID: 197904235}
|
- component: {fileID: 197904235}
|
||||||
- component: {fileID: 197904237}
|
- component: {fileID: 197904237}
|
||||||
- component: {fileID: 197904238}
|
- component: {fileID: 197904238}
|
||||||
|
- component: {fileID: 197904239}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: Mangager
|
m_Name: Mangager
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@@ -4134,6 +4135,7 @@ MonoBehaviour:
|
|||||||
- {fileID: 255844036}
|
- {fileID: 255844036}
|
||||||
dobott: 0
|
dobott: 0
|
||||||
dobottEgyszer: 0
|
dobottEgyszer: 0
|
||||||
|
ujradobasszamlalo: 0
|
||||||
--- !u!114 &197904222
|
--- !u!114 &197904222
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -4675,6 +4677,19 @@ MonoBehaviour:
|
|||||||
threefourText:
|
threefourText:
|
||||||
- {fileID: 663535674}
|
- {fileID: 663535674}
|
||||||
- {fileID: 1583842800}
|
- {fileID: 1583842800}
|
||||||
|
--- !u!114 &197904239
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 197904216}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: f1646c9ba4620a0e7861327e11e40849, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
mainCamera: {fileID: 519420031}
|
||||||
--- !u!1 &229807670
|
--- !u!1 &229807670
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -11098,7 +11113,7 @@ Camera:
|
|||||||
far clip plane: 10
|
far clip plane: 10
|
||||||
field of view: 60
|
field of view: 60
|
||||||
orthographic: 1
|
orthographic: 1
|
||||||
orthographic size: 10.409236
|
orthographic size: 10.4
|
||||||
m_Depth: -1
|
m_Depth: -1
|
||||||
m_CullingMask:
|
m_CullingMask:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
|
|||||||
28
Assets/Scripts/AspectRatioHandler.cs
Normal file
28
Assets/Scripts/AspectRatioHandler.cs
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class AspectRatioHandler : MonoBehaviour
|
||||||
|
{
|
||||||
|
public Camera mainCamera;
|
||||||
|
|
||||||
|
private void Awake() {
|
||||||
|
double aspectRatio = (double)Screen.width / (double)Screen.height;
|
||||||
|
aspectRatio = Math.Round(aspectRatio, 2);
|
||||||
|
Debug.Log("aspectratio: " + aspectRatio);
|
||||||
|
|
||||||
|
//5:4 1,25, 4:3 1,33, 16:9 1,77, 16:10 1,6, 21:9 2,33
|
||||||
|
|
||||||
|
if(aspectRatio == 1.78 || aspectRatio == 2.33){
|
||||||
|
mainCamera.orthographicSize = 10.4f; //16:9, 21:9
|
||||||
|
}else if(aspectRatio == 1.6){
|
||||||
|
mainCamera.orthographicSize = 11.43f; //16:10
|
||||||
|
}else if(aspectRatio == 1.33){
|
||||||
|
mainCamera.orthographicSize = 13.72f; //4:3
|
||||||
|
}else if(aspectRatio == 1.25){
|
||||||
|
mainCamera.orthographicSize = 14.68f;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
11
Assets/Scripts/AspectRatioHandler.cs.meta
Normal file
11
Assets/Scripts/AspectRatioHandler.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f1646c9ba4620a0e7861327e11e40849
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -10,11 +10,13 @@ public class Source : MonoBehaviour
|
|||||||
|
|
||||||
private movement movement;
|
private movement movement;
|
||||||
public GameObject sourceSprite;
|
public GameObject sourceSprite;
|
||||||
|
private Ugynok ugynok;
|
||||||
|
|
||||||
private bool oneTime = false;
|
private bool oneTime = false;
|
||||||
|
|
||||||
private void Awake() {
|
private void Awake() {
|
||||||
movement = FindObjectOfType<movement>();
|
movement = FindObjectOfType<movement>();
|
||||||
|
ugynok = FindObjectOfType<Ugynok>();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Start() {
|
private void Start() {
|
||||||
@@ -28,6 +30,10 @@ public class Source : MonoBehaviour
|
|||||||
if(isNyitva && oszlop != -1 && sor.Count == 1) {
|
if(isNyitva && oszlop != -1 && sor.Count == 1) {
|
||||||
sourceRender(oszlop, sor[0]);
|
sourceRender(oszlop, sor[0]);
|
||||||
if (!oneTime) {
|
if (!oneTime) {
|
||||||
|
for (int i = 0; i < 3; i++)
|
||||||
|
{
|
||||||
|
ugynok.UgynokSorsolas(oszlop, sor[0]);
|
||||||
|
}
|
||||||
printSourceLocation();
|
printSourceLocation();
|
||||||
oneTime = true;
|
oneTime = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ MonoBehaviour:
|
|||||||
m_PixelRect:
|
m_PixelRect:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
x: 0
|
x: 0
|
||||||
y: 65
|
y: 43
|
||||||
width: 1470
|
width: 1920
|
||||||
height: 806
|
height: 997
|
||||||
m_ShowMode: 4
|
m_ShowMode: 4
|
||||||
m_Title: Game
|
m_Title: Game
|
||||||
m_RootView: {fileID: 2}
|
m_RootView: {fileID: 2}
|
||||||
@@ -44,8 +44,8 @@ MonoBehaviour:
|
|||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
x: 0
|
x: 0
|
||||||
y: 0
|
y: 0
|
||||||
width: 1470
|
width: 1920
|
||||||
height: 806
|
height: 997
|
||||||
m_MinSize: {x: 875, y: 300}
|
m_MinSize: {x: 875, y: 300}
|
||||||
m_MaxSize: {x: 10000, y: 10000}
|
m_MaxSize: {x: 10000, y: 10000}
|
||||||
m_UseTopView: 1
|
m_UseTopView: 1
|
||||||
@@ -69,7 +69,7 @@ MonoBehaviour:
|
|||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
x: 0
|
x: 0
|
||||||
y: 0
|
y: 0
|
||||||
width: 1470
|
width: 1920
|
||||||
height: 30
|
height: 30
|
||||||
m_MinSize: {x: 0, y: 0}
|
m_MinSize: {x: 0, y: 0}
|
||||||
m_MaxSize: {x: 0, y: 0}
|
m_MaxSize: {x: 0, y: 0}
|
||||||
@@ -90,8 +90,8 @@ MonoBehaviour:
|
|||||||
m_Position:
|
m_Position:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
x: 0
|
x: 0
|
||||||
y: 786
|
y: 977
|
||||||
width: 1470
|
width: 1920
|
||||||
height: 20
|
height: 20
|
||||||
m_MinSize: {x: 0, y: 0}
|
m_MinSize: {x: 0, y: 0}
|
||||||
m_MaxSize: {x: 0, y: 0}
|
m_MaxSize: {x: 0, y: 0}
|
||||||
@@ -114,12 +114,16 @@ MonoBehaviour:
|
|||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
x: 0
|
x: 0
|
||||||
y: 30
|
y: 30
|
||||||
width: 1470
|
width: 1920
|
||||||
height: 756
|
height: 947
|
||||||
m_MinSize: {x: 300, y: 200}
|
m_MinSize: {x: 300, y: 200}
|
||||||
m_MaxSize: {x: 24288, y: 16192}
|
m_MaxSize: {x: 24288, y: 16192}
|
||||||
vertical: 0
|
vertical: 0
|
||||||
|
<<<<<<< HEAD
|
||||||
controlID: 32
|
controlID: 32
|
||||||
|
=======
|
||||||
|
controlID: 86
|
||||||
|
>>>>>>> b7a6275f0bc9ad64e243e322939afb85c91d1264
|
||||||
--- !u!114 &6
|
--- !u!114 &6
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 52
|
m_ObjectHideFlags: 52
|
||||||
@@ -698,7 +702,7 @@ MonoBehaviour:
|
|||||||
m_WindowGUID: cc27987af1a868c49b0894db9c0f5429
|
m_WindowGUID: cc27987af1a868c49b0894db9c0f5429
|
||||||
m_Gizmos: 1
|
m_Gizmos: 1
|
||||||
m_OverrideSceneCullingMask: 6917529027641081856
|
m_OverrideSceneCullingMask: 6917529027641081856
|
||||||
m_SceneIsLit: 0
|
m_SceneIsLit: 1
|
||||||
m_SceneLighting: 1
|
m_SceneLighting: 1
|
||||||
m_2DMode: 1
|
m_2DMode: 1
|
||||||
m_isRotationLocked: 0
|
m_isRotationLocked: 0
|
||||||
@@ -834,7 +838,7 @@ MonoBehaviour:
|
|||||||
m_LastFolders:
|
m_LastFolders:
|
||||||
- Assets/Scenes
|
- Assets/Scenes
|
||||||
m_LastFoldersGridSize: 66
|
m_LastFoldersGridSize: 66
|
||||||
m_LastProjectPath: /Users/bance/Documents/GitHub/findthesource
|
m_LastProjectPath: E:\dev\find the source\projekt\FindTheSource
|
||||||
m_LockTracker:
|
m_LockTracker:
|
||||||
m_IsLocked: 0
|
m_IsLocked: 0
|
||||||
m_FolderTreeState:
|
m_FolderTreeState:
|
||||||
@@ -869,7 +873,7 @@ MonoBehaviour:
|
|||||||
scrollPos: {x: 0, y: 0}
|
scrollPos: {x: 0, y: 0}
|
||||||
m_SelectedIDs:
|
m_SelectedIDs:
|
||||||
m_LastClickedID: 0
|
m_LastClickedID: 0
|
||||||
m_ExpandedIDs: 00000000047a0000
|
m_ExpandedIDs: 00000000346f0000
|
||||||
m_RenameOverlay:
|
m_RenameOverlay:
|
||||||
m_UserAcceptedRename: 0
|
m_UserAcceptedRename: 0
|
||||||
m_Name:
|
m_Name:
|
||||||
@@ -913,7 +917,7 @@ MonoBehaviour:
|
|||||||
m_IsRenaming: 0
|
m_IsRenaming: 0
|
||||||
m_OriginalEventType: 11
|
m_OriginalEventType: 11
|
||||||
m_IsRenamingFilename: 1
|
m_IsRenamingFilename: 1
|
||||||
m_ClientGUIView: {fileID: 10}
|
m_ClientGUIView: {fileID: 0}
|
||||||
m_CreateAssetUtility:
|
m_CreateAssetUtility:
|
||||||
m_EndAction: {fileID: 0}
|
m_EndAction: {fileID: 0}
|
||||||
m_InstanceID: 0
|
m_InstanceID: 0
|
||||||
@@ -969,14 +973,14 @@ MonoBehaviour:
|
|||||||
m_MaxSize: {x: 4000, y: 4000}
|
m_MaxSize: {x: 4000, y: 4000}
|
||||||
m_TitleContent:
|
m_TitleContent:
|
||||||
m_Text: Inspector
|
m_Text: Inspector
|
||||||
m_Image: {fileID: -440750813802333266, guid: 0000000000000000d000000000000000, type: 0}
|
m_Image: {fileID: -2667387946076563598, guid: 0000000000000000d000000000000000, type: 0}
|
||||||
m_Tooltip:
|
m_Tooltip:
|
||||||
m_Pos:
|
m_Pos:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
x: 1092.5
|
x: 1453
|
||||||
y: 95
|
y: 73
|
||||||
width: 376.5
|
width: 466
|
||||||
height: 735
|
height: 926
|
||||||
m_ViewDataDictionary: {fileID: 0}
|
m_ViewDataDictionary: {fileID: 0}
|
||||||
m_OverlayCanvas:
|
m_OverlayCanvas:
|
||||||
m_LastAppliedPresetName: Default
|
m_LastAppliedPresetName: Default
|
||||||
|
|||||||
Reference in New Issue
Block a user