Commit ba22241afad4921c32a4318f6825e0180ad64091
1 parent
61f18b62
Exists in
master
and in
9 other branches
CoResposta do boÃtão de ativar subtitle
Showing
27 changed files
with
628 additions
and
265 deletions
Show diff stats
Assets/Scenes/Main.unity
... | ... | @@ -1887,6 +1887,7 @@ GameObject: |
1887 | 1887 | - 222: {fileID: 460346712} |
1888 | 1888 | - 114: {fileID: 460346711} |
1889 | 1889 | - 114: {fileID: 460346710} |
1890 | + - 114: {fileID: 460346713} | |
1890 | 1891 | m_Layer: 5 |
1891 | 1892 | m_Name: b_subs |
1892 | 1893 | m_TagString: Untagged |
... | ... | @@ -1963,6 +1964,17 @@ MonoBehaviour: |
1963 | 1964 | m_StringArgument: |
1964 | 1965 | m_BoolArgument: 0 |
1965 | 1966 | m_CallState: 2 |
1967 | + - m_Target: {fileID: 460346713} | |
1968 | + m_MethodName: switchColorByReference | |
1969 | + m_Mode: 1 | |
1970 | + m_Arguments: | |
1971 | + m_ObjectArgument: {fileID: 0} | |
1972 | + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine | |
1973 | + m_IntArgument: 0 | |
1974 | + m_FloatArgument: 0 | |
1975 | + m_StringArgument: | |
1976 | + m_BoolArgument: 0 | |
1977 | + m_CallState: 2 | |
1966 | 1978 | m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, |
1967 | 1979 | Culture=neutral, PublicKeyToken=null |
1968 | 1980 | --- !u!114 &460346711 |
... | ... | @@ -1994,6 +2006,20 @@ CanvasRenderer: |
1994 | 2006 | type: 2} |
1995 | 2007 | m_PrefabInternal: {fileID: 0} |
1996 | 2008 | m_GameObject: {fileID: 460346708} |
2009 | +--- !u!114 &460346713 | |
2010 | +MonoBehaviour: | |
2011 | + m_ObjectHideFlags: 0 | |
2012 | + m_PrefabParentObject: {fileID: 0} | |
2013 | + m_PrefabInternal: {fileID: 0} | |
2014 | + m_GameObject: {fileID: 460346708} | |
2015 | + m_Enabled: 1 | |
2016 | + m_EditorHideFlags: 0 | |
2017 | + m_Script: {fileID: 11500000, guid: 29f6ab4437be5fb45a87e188a0176b8d, type: 3} | |
2018 | + m_Name: | |
2019 | + m_EditorClassIdentifier: | |
2020 | + thisButton: {fileID: 460346710} | |
2021 | + reference: {fileID: 1066268158} | |
2022 | + isEnabled: 1 | |
1997 | 2023 | --- !u!1 &496020597 |
1998 | 2024 | GameObject: |
1999 | 2025 | m_ObjectHideFlags: 0 |
... | ... | @@ -2498,6 +2524,10 @@ Prefab: |
2498 | 2524 | m_Modification: |
2499 | 2525 | m_TransformParent: {fileID: 0} |
2500 | 2526 | m_Modifications: |
2527 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2528 | + propertyPath: m_Animations.Array.size | |
2529 | + value: 40 | |
2530 | + objectReference: {fileID: 0} | |
2501 | 2531 | - target: {fileID: 491010, guid: 00197fc9877daa14c963e5917de36124, type: 2} |
2502 | 2532 | propertyPath: m_LocalPosition.x |
2503 | 2533 | value: 0 |
... | ... | @@ -2554,6 +2584,170 @@ Prefab: |
2554 | 2584 | propertyPath: m_Center.z |
2555 | 2585 | value: -1.45801504e-08 |
2556 | 2586 | objectReference: {fileID: 0} |
2587 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2588 | + propertyPath: m_Animations.Array.data[0] | |
2589 | + value: | |
2590 | + objectReference: {fileID: 7400000, guid: 0aed13c3b353fdc45bffc343452d1731, type: 2} | |
2591 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2592 | + propertyPath: m_Animations.Array.data[1] | |
2593 | + value: | |
2594 | + objectReference: {fileID: 7400000, guid: fc5f4d91c19efc74380c6647de635c9b, type: 2} | |
2595 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2596 | + propertyPath: m_Animations.Array.data[2] | |
2597 | + value: | |
2598 | + objectReference: {fileID: 7400000, guid: 80202b8af4368ec41967465e1b3aee77, type: 2} | |
2599 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2600 | + propertyPath: m_Animations.Array.data[3] | |
2601 | + value: | |
2602 | + objectReference: {fileID: 7400000, guid: f7c4781cd3dd7e941a8f824ac0c8e50b, type: 2} | |
2603 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2604 | + propertyPath: m_Animations.Array.data[4] | |
2605 | + value: | |
2606 | + objectReference: {fileID: 7400000, guid: 1320fc7940caa544b9b35dde9b87b8fd, type: 2} | |
2607 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2608 | + propertyPath: m_Animations.Array.data[5] | |
2609 | + value: | |
2610 | + objectReference: {fileID: 7400000, guid: 1fd351fcbc07ec74e9d9e05a1ee8096c, type: 2} | |
2611 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2612 | + propertyPath: m_Animations.Array.data[6] | |
2613 | + value: | |
2614 | + objectReference: {fileID: 7400000, guid: db310f6b24d2438468e97914e51942e3, type: 2} | |
2615 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2616 | + propertyPath: m_Animations.Array.data[7] | |
2617 | + value: | |
2618 | + objectReference: {fileID: 7400000, guid: 68d10f35177476b4d954eb82cd771d8c, type: 2} | |
2619 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2620 | + propertyPath: m_Animations.Array.data[8] | |
2621 | + value: | |
2622 | + objectReference: {fileID: 7400000, guid: e8a4795c8f7f11243939b3850ad48485, type: 2} | |
2623 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2624 | + propertyPath: m_Animations.Array.data[9] | |
2625 | + value: | |
2626 | + objectReference: {fileID: 7400000, guid: 0621c494250c7254cab22371ff689f69, type: 2} | |
2627 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2628 | + propertyPath: m_Animations.Array.data[10] | |
2629 | + value: | |
2630 | + objectReference: {fileID: 7400000, guid: de46f27b443aced439d525c331292c95, type: 2} | |
2631 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2632 | + propertyPath: m_Animations.Array.data[11] | |
2633 | + value: | |
2634 | + objectReference: {fileID: 7400000, guid: e9d2ab4f57bf67b4e9b1d6e702c350ec, type: 2} | |
2635 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2636 | + propertyPath: m_Animations.Array.data[12] | |
2637 | + value: | |
2638 | + objectReference: {fileID: 7400000, guid: 5986a1df6727eb145947edff2d158390, type: 2} | |
2639 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2640 | + propertyPath: m_Animations.Array.data[13] | |
2641 | + value: | |
2642 | + objectReference: {fileID: 7400000, guid: 6ea006602797e9947a9aab0a72bdb119, type: 2} | |
2643 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2644 | + propertyPath: m_Animations.Array.data[14] | |
2645 | + value: | |
2646 | + objectReference: {fileID: 7400000, guid: 8b68948e8624fa84b8d8e2b4d56bc1c0, type: 2} | |
2647 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2648 | + propertyPath: m_Animations.Array.data[15] | |
2649 | + value: | |
2650 | + objectReference: {fileID: 7400000, guid: 9eb245caa18790841bf9259c5c2641b0, type: 2} | |
2651 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2652 | + propertyPath: m_Animations.Array.data[16] | |
2653 | + value: | |
2654 | + objectReference: {fileID: 7400000, guid: 625273603d055064880c6108c89ac180, type: 2} | |
2655 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2656 | + propertyPath: m_Animations.Array.data[17] | |
2657 | + value: | |
2658 | + objectReference: {fileID: 7400000, guid: 2e1df61261fb6f045a2b2c83abe98af0, type: 2} | |
2659 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2660 | + propertyPath: m_Animations.Array.data[18] | |
2661 | + value: | |
2662 | + objectReference: {fileID: 7400000, guid: d5b330782914c804d9eaf252d85c9a75, type: 2} | |
2663 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2664 | + propertyPath: m_Animations.Array.data[19] | |
2665 | + value: | |
2666 | + objectReference: {fileID: 7400000, guid: ed400e6678ca0df4f8b97791638cde86, type: 2} | |
2667 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2668 | + propertyPath: m_Animations.Array.data[20] | |
2669 | + value: | |
2670 | + objectReference: {fileID: 7400000, guid: 9552df06787b0d14792f8af5291cbc95, type: 2} | |
2671 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2672 | + propertyPath: m_Animations.Array.data[21] | |
2673 | + value: | |
2674 | + objectReference: {fileID: 7400000, guid: a53eeb143147b304f9360c6b1e41d14d, type: 2} | |
2675 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2676 | + propertyPath: m_Animations.Array.data[22] | |
2677 | + value: | |
2678 | + objectReference: {fileID: 7400000, guid: 0a21e496ee57c5648bec1e906fe1625f, type: 2} | |
2679 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2680 | + propertyPath: m_Animations.Array.data[23] | |
2681 | + value: | |
2682 | + objectReference: {fileID: 7400000, guid: 70ccd19b2dc6cd84f91f45877d67f678, type: 2} | |
2683 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2684 | + propertyPath: m_Animations.Array.data[24] | |
2685 | + value: | |
2686 | + objectReference: {fileID: 7400000, guid: e01df52c90a07a641bf91645368c654c, type: 2} | |
2687 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2688 | + propertyPath: m_Animations.Array.data[25] | |
2689 | + value: | |
2690 | + objectReference: {fileID: 7400000, guid: a204111404089fd4e95c033cc7c46e19, type: 2} | |
2691 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2692 | + propertyPath: m_Animations.Array.data[26] | |
2693 | + value: | |
2694 | + objectReference: {fileID: 7400000, guid: 83ea47651b1acd64b9e648192c5fbee4, type: 2} | |
2695 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2696 | + propertyPath: m_Animations.Array.data[27] | |
2697 | + value: | |
2698 | + objectReference: {fileID: 7400000, guid: f1a1370a0a7bea54c916c66150525fa2, type: 2} | |
2699 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2700 | + propertyPath: m_Animations.Array.data[28] | |
2701 | + value: | |
2702 | + objectReference: {fileID: 7400000, guid: 8c0a2435854bb7041ae63db46a6d2c85, type: 2} | |
2703 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2704 | + propertyPath: m_Animations.Array.data[29] | |
2705 | + value: | |
2706 | + objectReference: {fileID: 7400000, guid: 2460f8be0322df44ea684ce55ab12092, type: 2} | |
2707 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2708 | + propertyPath: m_Animations.Array.data[30] | |
2709 | + value: | |
2710 | + objectReference: {fileID: 7400000, guid: 29def6336d4320c40b67592dc9f1fade, type: 2} | |
2711 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2712 | + propertyPath: m_Animations.Array.data[31] | |
2713 | + value: | |
2714 | + objectReference: {fileID: 7400000, guid: 7859a09e329c6cf419a04bf90bfb389a, type: 2} | |
2715 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2716 | + propertyPath: m_Animations.Array.data[32] | |
2717 | + value: | |
2718 | + objectReference: {fileID: 7400000, guid: cecc27c5878d0e244a84b59895a3c755, type: 2} | |
2719 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2720 | + propertyPath: m_Animations.Array.data[33] | |
2721 | + value: | |
2722 | + objectReference: {fileID: 7400000, guid: 168b30fca8ea45b48908de0b91c8e29d, type: 2} | |
2723 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2724 | + propertyPath: m_Animations.Array.data[34] | |
2725 | + value: | |
2726 | + objectReference: {fileID: 7400000, guid: d93fd768a13297448ac0cacc8321f7d6, type: 2} | |
2727 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2728 | + propertyPath: m_Animations.Array.data[35] | |
2729 | + value: | |
2730 | + objectReference: {fileID: 7400000, guid: 709ecc425ca507141ad3ace78df339d6, type: 2} | |
2731 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2732 | + propertyPath: m_Animations.Array.data[36] | |
2733 | + value: | |
2734 | + objectReference: {fileID: 7400000, guid: 3e31ea2fd4d2f344bbe4fd6473f94dfb, type: 2} | |
2735 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2736 | + propertyPath: m_Animations.Array.data[37] | |
2737 | + value: | |
2738 | + objectReference: {fileID: 7400000, guid: c2082ba03c09f974bb789c7522c2ff58, type: 2} | |
2739 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2740 | + propertyPath: m_Animations.Array.data[38] | |
2741 | + value: | |
2742 | + objectReference: {fileID: 7400000, guid: bd4ac870b502a9f4780a63c0de092d06, type: 2} | |
2743 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2744 | + propertyPath: m_Animations.Array.data[39] | |
2745 | + value: | |
2746 | + objectReference: {fileID: 7400000, guid: cabb127e31ba33047a4cabe18e785494, type: 2} | |
2747 | + - target: {fileID: 11171278, guid: 00197fc9877daa14c963e5917de36124, type: 2} | |
2748 | + propertyPath: m_Animation | |
2749 | + value: | |
2750 | + objectReference: {fileID: 7400000, guid: e9d2ab4f57bf67b4e9b1d6e702c350ec, type: 2} | |
2557 | 2751 | m_RemovedComponents: [] |
2558 | 2752 | m_ParentPrefab: {fileID: 100100000, guid: 00197fc9877daa14c963e5917de36124, type: 2} |
2559 | 2753 | m_IsPrefabParent: 0 |
... | ... | @@ -4251,6 +4445,7 @@ GameObject: |
4251 | 4445 | - 222: {fileID: 841998881} |
4252 | 4446 | - 114: {fileID: 841998880} |
4253 | 4447 | - 114: {fileID: 841998879} |
4448 | + - 114: {fileID: 841998882} | |
4254 | 4449 | m_Layer: 5 |
4255 | 4450 | m_Name: b_subs |
4256 | 4451 | m_TagString: Untagged |
... | ... | @@ -4327,6 +4522,17 @@ MonoBehaviour: |
4327 | 4522 | m_StringArgument: |
4328 | 4523 | m_BoolArgument: 0 |
4329 | 4524 | m_CallState: 2 |
4525 | + - m_Target: {fileID: 841998882} | |
4526 | + m_MethodName: switchColorByReference | |
4527 | + m_Mode: 1 | |
4528 | + m_Arguments: | |
4529 | + m_ObjectArgument: {fileID: 0} | |
4530 | + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine | |
4531 | + m_IntArgument: 0 | |
4532 | + m_FloatArgument: 0 | |
4533 | + m_StringArgument: | |
4534 | + m_BoolArgument: 0 | |
4535 | + m_CallState: 2 | |
4330 | 4536 | m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, |
4331 | 4537 | Culture=neutral, PublicKeyToken=null |
4332 | 4538 | --- !u!114 &841998880 |
... | ... | @@ -4358,6 +4564,20 @@ CanvasRenderer: |
4358 | 4564 | type: 2} |
4359 | 4565 | m_PrefabInternal: {fileID: 0} |
4360 | 4566 | m_GameObject: {fileID: 841998877} |
4567 | +--- !u!114 &841998882 | |
4568 | +MonoBehaviour: | |
4569 | + m_ObjectHideFlags: 0 | |
4570 | + m_PrefabParentObject: {fileID: 0} | |
4571 | + m_PrefabInternal: {fileID: 0} | |
4572 | + m_GameObject: {fileID: 841998877} | |
4573 | + m_Enabled: 1 | |
4574 | + m_EditorHideFlags: 0 | |
4575 | + m_Script: {fileID: 11500000, guid: 29f6ab4437be5fb45a87e188a0176b8d, type: 3} | |
4576 | + m_Name: | |
4577 | + m_EditorClassIdentifier: | |
4578 | + thisButton: {fileID: 841998879} | |
4579 | + reference: {fileID: 1066268158} | |
4580 | + isEnabled: 1 | |
4361 | 4581 | --- !u!1 &886515941 |
4362 | 4582 | GameObject: |
4363 | 4583 | m_ObjectHideFlags: 0 |
... | ... | @@ -7574,6 +7794,7 @@ GameObject: |
7574 | 7794 | - 222: {fileID: 1439902021} |
7575 | 7795 | - 114: {fileID: 1439902020} |
7576 | 7796 | - 114: {fileID: 1439902019} |
7797 | + - 114: {fileID: 1439902022} | |
7577 | 7798 | m_Layer: 5 |
7578 | 7799 | m_Name: t_loading_snippet |
7579 | 7800 | m_TagString: loading_snippet |
... | ... | @@ -7595,10 +7816,10 @@ RectTransform: |
7595 | 7816 | - {fileID: 2125158392} |
7596 | 7817 | m_Father: {fileID: 782282766} |
7597 | 7818 | m_RootOrder: 0 |
7598 | - m_AnchorMin: {x: .5, y: .5} | |
7599 | - m_AnchorMax: {x: .5, y: .5} | |
7600 | - m_AnchoredPosition: {x: 0, y: 0} | |
7601 | - m_SizeDelta: {x: 160, y: 30} | |
7819 | + m_AnchorMin: {x: 0, y: 1} | |
7820 | + m_AnchorMax: {x: 1, y: 1} | |
7821 | + m_AnchoredPosition: {x: 0, y: -185} | |
7822 | + m_SizeDelta: {x: 0, y: 370} | |
7602 | 7823 | m_Pivot: {x: .5, y: .5} |
7603 | 7824 | --- !u!114 &1439902019 |
7604 | 7825 | MonoBehaviour: |
... | ... | @@ -7631,12 +7852,12 @@ MonoBehaviour: |
7631 | 7852 | m_Color: {r: .0196078438, g: .678431392, b: .854902029, a: 1} |
7632 | 7853 | m_FontData: |
7633 | 7854 | m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} |
7634 | - m_FontSize: 20 | |
7855 | + m_FontSize: 60 | |
7635 | 7856 | m_FontStyle: 1 |
7636 | 7857 | m_BestFit: 0 |
7637 | 7858 | m_MinSize: 10 |
7638 | 7859 | m_MaxSize: 40 |
7639 | - m_Alignment: 4 | |
7860 | + m_Alignment: 7 | |
7640 | 7861 | m_RichText: 1 |
7641 | 7862 | m_HorizontalOverflow: 1 |
7642 | 7863 | m_VerticalOverflow: 0 |
... | ... | @@ -7649,6 +7870,19 @@ CanvasRenderer: |
7649 | 7870 | type: 2} |
7650 | 7871 | m_PrefabInternal: {fileID: 0} |
7651 | 7872 | m_GameObject: {fileID: 1439902017} |
7873 | +--- !u!114 &1439902022 | |
7874 | +MonoBehaviour: | |
7875 | + m_ObjectHideFlags: 0 | |
7876 | + m_PrefabParentObject: {fileID: 0} | |
7877 | + m_PrefabInternal: {fileID: 0} | |
7878 | + m_GameObject: {fileID: 1439902017} | |
7879 | + m_Enabled: 1 | |
7880 | + m_EditorHideFlags: 0 | |
7881 | + m_Script: {fileID: 11500000, guid: 823c98ddc010736408f7ed99ec13991e, type: 3} | |
7882 | + m_Name: | |
7883 | + m_EditorClassIdentifier: | |
7884 | + text: {fileID: 1439902020} | |
7885 | + image: {fileID: 2125158395} | |
7652 | 7886 | --- !u!1 &1491086496 |
7653 | 7887 | GameObject: |
7654 | 7888 | m_ObjectHideFlags: 0 |
... | ... | @@ -10173,6 +10407,7 @@ GameObject: |
10173 | 10407 | - 222: {fileID: 1813892965} |
10174 | 10408 | - 114: {fileID: 1813892964} |
10175 | 10409 | - 114: {fileID: 1813892963} |
10410 | + - 114: {fileID: 1813892966} | |
10176 | 10411 | m_Layer: 5 |
10177 | 10412 | m_Name: b_subs |
10178 | 10413 | m_TagString: Untagged |
... | ... | @@ -10249,6 +10484,17 @@ MonoBehaviour: |
10249 | 10484 | m_StringArgument: |
10250 | 10485 | m_BoolArgument: 0 |
10251 | 10486 | m_CallState: 2 |
10487 | + - m_Target: {fileID: 1813892966} | |
10488 | + m_MethodName: switchColorByReference | |
10489 | + m_Mode: 1 | |
10490 | + m_Arguments: | |
10491 | + m_ObjectArgument: {fileID: 0} | |
10492 | + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine | |
10493 | + m_IntArgument: 0 | |
10494 | + m_FloatArgument: 0 | |
10495 | + m_StringArgument: | |
10496 | + m_BoolArgument: 0 | |
10497 | + m_CallState: 2 | |
10252 | 10498 | m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, |
10253 | 10499 | Culture=neutral, PublicKeyToken=null |
10254 | 10500 | --- !u!114 &1813892964 |
... | ... | @@ -10280,6 +10526,20 @@ CanvasRenderer: |
10280 | 10526 | type: 2} |
10281 | 10527 | m_PrefabInternal: {fileID: 0} |
10282 | 10528 | m_GameObject: {fileID: 1813892961} |
10529 | +--- !u!114 &1813892966 | |
10530 | +MonoBehaviour: | |
10531 | + m_ObjectHideFlags: 0 | |
10532 | + m_PrefabParentObject: {fileID: 0} | |
10533 | + m_PrefabInternal: {fileID: 0} | |
10534 | + m_GameObject: {fileID: 1813892961} | |
10535 | + m_Enabled: 1 | |
10536 | + m_EditorHideFlags: 0 | |
10537 | + m_Script: {fileID: 11500000, guid: 29f6ab4437be5fb45a87e188a0176b8d, type: 3} | |
10538 | + m_Name: | |
10539 | + m_EditorClassIdentifier: | |
10540 | + thisButton: {fileID: 1813892963} | |
10541 | + reference: {fileID: 1066268158} | |
10542 | + isEnabled: 1 | |
10283 | 10543 | --- !u!1 &1814140553 |
10284 | 10544 | GameObject: |
10285 | 10545 | m_ObjectHideFlags: 0 |
... | ... | @@ -11819,14 +12079,14 @@ RectTransform: |
11819 | 12079 | m_GameObject: {fileID: 2125158391} |
11820 | 12080 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
11821 | 12081 | m_LocalPosition: {x: 0, y: 0, z: 0} |
11822 | - m_LocalScale: {x: .5, y: .5, z: 1} | |
12082 | + m_LocalScale: {x: 1, y: 1, z: 1} | |
11823 | 12083 | m_Children: [] |
11824 | 12084 | m_Father: {fileID: 1439902018} |
11825 | 12085 | m_RootOrder: 0 |
11826 | - m_AnchorMin: {x: .5, y: .5} | |
11827 | - m_AnchorMax: {x: .5, y: .5} | |
11828 | - m_AnchoredPosition: {x: 0, y: -40} | |
11829 | - m_SizeDelta: {x: 100, y: 100} | |
12086 | + m_AnchorMin: {x: .5, y: 0} | |
12087 | + m_AnchorMax: {x: .5, y: 0} | |
12088 | + m_AnchoredPosition: {x: 0, y: -90} | |
12089 | + m_SizeDelta: {x: 120, y: 120} | |
11830 | 12090 | m_Pivot: {x: .5, y: .5} |
11831 | 12091 | --- !u!114 &2125158393 |
11832 | 12092 | MonoBehaviour: | ... | ... |
... | ... | @@ -0,0 +1,12 @@ |
1 | +fileFormatVersion: 2 | |
2 | +guid: 6d83e5bebf7655944adc5d9a7bc02fde | |
3 | +timeCreated: 1443550977 | |
4 | +licenseType: Pro | |
5 | +MonoImporter: | |
6 | + serializedVersion: 2 | |
7 | + defaultReferences: [] | |
8 | + executionOrder: 0 | |
9 | + icon: {instanceID: 0} | |
10 | + userData: | |
11 | + assetBundleName: | |
12 | + assetBundleVariant: | ... | ... |
Assets/Scripts/SwitchActiveStatus.cs
1 | 1 | using UnityEngine; |
2 | 2 | using System; |
3 | 3 | |
4 | -public class SwitchActiveStatus : MonoBehaviour { | |
4 | +public class SwitchActiveStatus : MonoBehaviour, ColorChangeState { | |
5 | 5 | |
6 | 6 | public bool show = true; |
7 | 7 | |
... | ... | @@ -14,4 +14,9 @@ public class SwitchActiveStatus : MonoBehaviour { |
14 | 14 | |
15 | 15 | } |
16 | 16 | |
17 | + public bool getColorChangeState() | |
18 | + { | |
19 | + return show; | |
20 | + } | |
21 | + | |
17 | 22 | } | ... | ... |
... | ... | @@ -0,0 +1,60 @@ |
1 | +using UnityEngine; | |
2 | +using System.Collections; | |
3 | +using UnityEngine.UI; | |
4 | + | |
5 | +public class SwitchButtonCollor : MonoBehaviour { | |
6 | + | |
7 | + public Button thisButton; | |
8 | + public GameObject reference; | |
9 | + private Graphic thisButtonGraphic; | |
10 | + | |
11 | + public bool isEnabled; | |
12 | + private static Color enabledColor = new Color(0.356F, 0.78F, 0.815F, 1F); | |
13 | + private static Color disabledColor = new Color(1F, 1F, 1F, 1F); | |
14 | + | |
15 | + | |
16 | + void Start () | |
17 | + { | |
18 | + if (thisButton == null) | |
19 | + thisButton = (Button) gameObject.GetComponent<Button>(); | |
20 | + | |
21 | + thisButtonGraphic = thisButton.GetComponent<Graphic>(); | |
22 | + | |
23 | + if (reference == null) | |
24 | + updateColor(); | |
25 | + else | |
26 | + switchColorByReference(); | |
27 | + } | |
28 | + | |
29 | + void OnEnable () | |
30 | + { | |
31 | + if (thisButtonGraphic != null && reference != null) | |
32 | + switchColorByReference(); | |
33 | + } | |
34 | + | |
35 | + | |
36 | + public void updateColor() | |
37 | + { | |
38 | + thisButtonGraphic.color = isEnabled ? enabledColor : disabledColor; | |
39 | + } | |
40 | + | |
41 | + public void switchColor(bool isEnabled) | |
42 | + { | |
43 | + this.isEnabled = isEnabled; | |
44 | + updateColor(); | |
45 | + } | |
46 | + public void switchCollor() { | |
47 | + switchColor( ! isEnabled); | |
48 | + } | |
49 | + | |
50 | + public void switchColorByReference() | |
51 | + { | |
52 | + switchColorByReference(reference); | |
53 | + } | |
54 | + public void switchColorByReference(GameObject reference) | |
55 | + { | |
56 | + ColorChangeState state = reference.GetComponent<ColorChangeState>(); | |
57 | + if (state != null) switchColor(state.getColorChangeState()); | |
58 | + } | |
59 | + | |
60 | +} | ... | ... |
... | ... | @@ -0,0 +1,12 @@ |
1 | +fileFormatVersion: 2 | |
2 | +guid: 29f6ab4437be5fb45a87e188a0176b8d | |
3 | +timeCreated: 1443550911 | |
4 | +licenseType: Pro | |
5 | +MonoImporter: | |
6 | + serializedVersion: 2 | |
7 | + defaultReferences: [] | |
8 | + executionOrder: 0 | |
9 | + icon: {instanceID: 0} | |
10 | + userData: | |
11 | + assetBundleName: | |
12 | + assetBundleVariant: | ... | ... |
Assets/Scripts/UIManagerInfo.cs
... | ... | @@ -1,54 +0,0 @@ |
1 | -using UnityEngine; | |
2 | -using UnityEngine.UI; | |
3 | - | |
4 | -public class UIManagerInfo : UIManager { | |
5 | - | |
6 | - public GameObject bar; | |
7 | - public GameObject logo; | |
8 | - public Button back; | |
9 | - public Button facebook; | |
10 | - public Button tutorial; | |
11 | - public Image info; | |
12 | - | |
13 | - protected override void rebuild(float scale) | |
14 | - { | |
15 | - // bar | |
16 | - { | |
17 | - bar.transform.localScale = new Vector3(scale, scale, 1); | |
18 | - bar.transform.position -= new Vector3(0, 165 * (1F - scale), 0); | |
19 | - } | |
20 | - | |
21 | - // logo | |
22 | - { | |
23 | - logo.transform.localScale = new Vector3(scale, scale, 1); | |
24 | - logo.transform.position -= new Vector3(0, -160 * (1F - scale), 0); | |
25 | - } | |
26 | - | |
27 | - // back | |
28 | - { | |
29 | - float dist = 100 * (1F - scale); | |
30 | - | |
31 | - back.transform.localScale = new Vector3(scale, scale, 1); | |
32 | - back.transform.position -= new Vector3(dist, -dist, 0); | |
33 | - } | |
34 | - | |
35 | ||
36 | - { | |
37 | - facebook.transform.localScale = new Vector3(scale, scale, 1); | |
38 | - facebook.transform.position -= new Vector3(0, 500 * (1F - scale), 0); | |
39 | - } | |
40 | - | |
41 | - // tutorial | |
42 | - { | |
43 | - tutorial.transform.localScale = new Vector3(scale, scale, 1); | |
44 | - tutorial.transform.position -= new Vector3(0, 900 * (1F - scale), 0); | |
45 | - } | |
46 | - | |
47 | - // info | |
48 | - { | |
49 | - info.transform.localScale = new Vector3(scale, scale, 1); | |
50 | - //info.transform.position -= new Vector3(0, 540 * (1F - scale), 0); | |
51 | - } | |
52 | - } | |
53 | - | |
54 | -} |
Assets/Scripts/UIManagerInfo.cs.meta
... | ... | @@ -1,12 +0,0 @@ |
1 | -fileFormatVersion: 2 | |
2 | -guid: ce16815e8dc049b4da420d411c6e0f52 | |
3 | -timeCreated: 1443132844 | |
4 | -licenseType: Pro | |
5 | -MonoImporter: | |
6 | - serializedVersion: 2 | |
7 | - defaultReferences: [] | |
8 | - executionOrder: 0 | |
9 | - icon: {instanceID: 0} | |
10 | - userData: | |
11 | - assetBundleName: | |
12 | - assetBundleVariant: |
Assets/Scripts/UIManagerLoading.cs
... | ... | @@ -1,36 +0,0 @@ |
1 | -using UnityEngine; | |
2 | -using UnityEngine.UI; | |
3 | - | |
4 | -public class UIManagerLoading : UIManager { | |
5 | - | |
6 | - public Text text; | |
7 | - public Image image; | |
8 | - | |
9 | - protected override void rebuild(float scale) | |
10 | - { | |
11 | - float textHeight = Screen.height / 2; | |
12 | - | |
13 | - // text | |
14 | - { | |
15 | - text.fontSize = (int)( text.fontSize * scale ); | |
16 | - | |
17 | - Vector2 textSize = text.GetComponent<RectTransform>().sizeDelta; | |
18 | - textSize.y = textHeight; | |
19 | - text.GetComponent<RectTransform>().sizeDelta = textSize; | |
20 | - | |
21 | - Vector3 textPosition = text.transform.position; | |
22 | - textPosition.y = (3 * Screen.height) / 4; | |
23 | - text.transform.position = textPosition; | |
24 | - } | |
25 | - | |
26 | - // image | |
27 | - { | |
28 | - image.transform.localScale = new Vector3(scale, scale, 1); | |
29 | - | |
30 | - Vector3 imagePosition = image.transform.position; | |
31 | - imagePosition.y = textHeight - (90 * scale); | |
32 | - image.transform.position = imagePosition; | |
33 | - } | |
34 | - } | |
35 | - | |
36 | -} |
Assets/Scripts/UIManagerLoading.cs.meta
... | ... | @@ -1,12 +0,0 @@ |
1 | -fileFormatVersion: 2 | |
2 | -guid: 823c98ddc010736408f7ed99ec13991e | |
3 | -timeCreated: 1443546340 | |
4 | -licenseType: Pro | |
5 | -MonoImporter: | |
6 | - serializedVersion: 2 | |
7 | - defaultReferences: [] | |
8 | - executionOrder: 0 | |
9 | - icon: {instanceID: 0} | |
10 | - userData: | |
11 | - assetBundleName: | |
12 | - assetBundleVariant: |
Assets/Scripts/UIManagerMain.cs
... | ... | @@ -1,17 +0,0 @@ |
1 | -using UnityEngine; | |
2 | -using UnityEngine.UI; | |
3 | - | |
4 | -public class UIManagerMain : UIManager { | |
5 | - | |
6 | - public RawImage bar; | |
7 | - public GameObject container; | |
8 | - public Text text; | |
9 | - | |
10 | - protected override void rebuild(float scale) | |
11 | - { | |
12 | - container.transform.localScale = new Vector3(scale, 1, 1); | |
13 | - bar.transform.localScale = new Vector3(1, scale, 1); | |
14 | - bar.transform.position -= new Vector3(0, 165 * (1F - scale), 0); | |
15 | - } | |
16 | - | |
17 | -} |
Assets/Scripts/UIManagerMain.cs.meta
... | ... | @@ -1,12 +0,0 @@ |
1 | -fileFormatVersion: 2 | |
2 | -guid: 239edcb796cadf747a83e8ab7ad4ffa9 | |
3 | -timeCreated: 1443466662 | |
4 | -licenseType: Pro | |
5 | -MonoImporter: | |
6 | - serializedVersion: 2 | |
7 | - defaultReferences: [] | |
8 | - executionOrder: 0 | |
9 | - icon: {instanceID: 0} | |
10 | - userData: | |
11 | - assetBundleName: | |
12 | - assetBundleVariant: |
Assets/Scripts/UIManagerTextEntry.cs
... | ... | @@ -1,58 +0,0 @@ |
1 | -using UnityEngine; | |
2 | -using UnityEngine.UI; | |
3 | - | |
4 | -public class UIManagerTextEntry : UIManager { | |
5 | - | |
6 | - public Button back; | |
7 | - public GameObject label; | |
8 | - public GameObject textEntry; | |
9 | - public Button translate; | |
10 | - | |
11 | - protected override void rebuild(float scale) | |
12 | - { | |
13 | - // back | |
14 | - { | |
15 | - float dist = 132 * scale * 0.75F; | |
16 | - | |
17 | - back.transform.localScale = new Vector3(scale, scale, 1); | |
18 | - back.transform.position = new Vector3(dist, Screen.height - dist); | |
19 | - } | |
20 | - | |
21 | - float labelHeight = 187.5F * scale; | |
22 | - float labelDist = labelHeight * 0.75F; | |
23 | - | |
24 | - // label | |
25 | - { | |
26 | - label.transform.localScale = new Vector3(scale, scale, 1); | |
27 | - label.transform.position = new Vector3(Screen.width / 2, Screen.height - labelDist, 0); | |
28 | - } | |
29 | - | |
30 | - float translateHeight = 152 * scale; | |
31 | - | |
32 | - // translate | |
33 | - { | |
34 | - translate.transform.localScale = new Vector3(scale, scale, 1); | |
35 | - translate.transform.localPosition = new Vector3(translate.transform.localPosition.x, - translateHeight, 0); | |
36 | - } | |
37 | - | |
38 | - // textEntry | |
39 | - { | |
40 | - float labelBottom = labelDist + labelHeight - (33 * scale); | |
41 | - float margin = 80 * scale; | |
42 | - float barTop = 165 * scale; | |
43 | - | |
44 | - float marginTop = labelBottom + margin; | |
45 | - float marginBottom = barTop + translateHeight + (translateHeight / 2) + margin; | |
46 | - | |
47 | - float height = Screen.height - marginTop - marginBottom; | |
48 | - | |
49 | - Vector2 size = textEntry.GetComponent<RectTransform>().sizeDelta; | |
50 | - | |
51 | - textEntry.transform.position = new Vector3(textEntry.transform.position.x, Screen.height - marginTop - (height / 2), 0); | |
52 | - | |
53 | - size.y = Screen.height - marginTop - marginBottom; | |
54 | - textEntry.GetComponent<RectTransform>().sizeDelta = size; | |
55 | - } | |
56 | - } | |
57 | - | |
58 | -} | |
59 | 0 | \ No newline at end of file |
Assets/Scripts/UIManagerTextEntry.cs.meta
... | ... | @@ -1,12 +0,0 @@ |
1 | -fileFormatVersion: 2 | |
2 | -guid: d103555d2f5d21347af354358e25dc88 | |
3 | -timeCreated: 1443467094 | |
4 | -licenseType: Pro | |
5 | -MonoImporter: | |
6 | - serializedVersion: 2 | |
7 | - defaultReferences: [] | |
8 | - executionOrder: 0 | |
9 | - icon: {instanceID: 0} | |
10 | - userData: | |
11 | - assetBundleName: | |
12 | - assetBundleVariant: |
Assets/Scripts/UIManagerTutorial.cs
... | ... | @@ -1,28 +0,0 @@ |
1 | -using UnityEngine; | |
2 | -using UnityEngine.UI; | |
3 | - | |
4 | -public class UIManagerTutorial : UIManager { | |
5 | - | |
6 | - public GameObject bar; | |
7 | - public Button next; | |
8 | - public GameObject container; | |
9 | - public Button exit; | |
10 | - public RawImage text; | |
11 | - | |
12 | - protected override void rebuild(float scale) | |
13 | - { | |
14 | - container.transform.localScale = new Vector3(scale, 1, 1); | |
15 | - next.transform.localScale = new Vector3(scale, 1, 1); | |
16 | - bar.transform.localScale = new Vector3(1, scale, 1); | |
17 | - | |
18 | - bar.transform.position -= new Vector3(0, 165 * (1F - scale), 0); | |
19 | - next.transform.localPosition = new Vector3((Screen.width / 2) - (122.4F * scale), 0, 0); | |
20 | - | |
21 | - exit.transform.localScale = new Vector3(scale, scale, 1); | |
22 | - float dist = 116 * scale * 0.75F; | |
23 | - exit.transform.position = new Vector3(Screen.width - dist, Screen.height - dist, 0); | |
24 | - | |
25 | - text.transform.localScale = new Vector3(scale, scale, 1); | |
26 | - } | |
27 | - | |
28 | -} |
Assets/Scripts/UIManagerTutorial.cs.meta
... | ... | @@ -1,12 +0,0 @@ |
1 | -fileFormatVersion: 2 | |
2 | -guid: be116c0f4c187cf4b9ce79930d230d35 | |
3 | -timeCreated: 1443215773 | |
4 | -licenseType: Pro | |
5 | -MonoImporter: | |
6 | - serializedVersion: 2 | |
7 | - defaultReferences: [] | |
8 | - executionOrder: 0 | |
9 | - icon: {instanceID: 0} | |
10 | - userData: | |
11 | - assetBundleName: | |
12 | - assetBundleVariant: |
... | ... | @@ -0,0 +1,54 @@ |
1 | +using UnityEngine; | |
2 | +using UnityEngine.UI; | |
3 | + | |
4 | +public class UIManagerInfo : UIManager { | |
5 | + | |
6 | + public GameObject bar; | |
7 | + public GameObject logo; | |
8 | + public Button back; | |
9 | + public Button facebook; | |
10 | + public Button tutorial; | |
11 | + public Image info; | |
12 | + | |
13 | + protected override void rebuild(float scale) | |
14 | + { | |
15 | + // bar | |
16 | + { | |
17 | + bar.transform.localScale = new Vector3(scale, scale, 1); | |
18 | + bar.transform.position -= new Vector3(0, 165 * (1F - scale), 0); | |
19 | + } | |
20 | + | |
21 | + // logo | |
22 | + { | |
23 | + logo.transform.localScale = new Vector3(scale, scale, 1); | |
24 | + logo.transform.position -= new Vector3(0, -160 * (1F - scale), 0); | |
25 | + } | |
26 | + | |
27 | + // back | |
28 | + { | |
29 | + float dist = 100 * (1F - scale); | |
30 | + | |
31 | + back.transform.localScale = new Vector3(scale, scale, 1); | |
32 | + back.transform.position -= new Vector3(dist, -dist, 0); | |
33 | + } | |
34 | + | |
35 | ||
36 | + { | |
37 | + facebook.transform.localScale = new Vector3(scale, scale, 1); | |
38 | + facebook.transform.position -= new Vector3(0, 500 * (1F - scale), 0); | |
39 | + } | |
40 | + | |
41 | + // tutorial | |
42 | + { | |
43 | + tutorial.transform.localScale = new Vector3(scale, scale, 1); | |
44 | + tutorial.transform.position -= new Vector3(0, 900 * (1F - scale), 0); | |
45 | + } | |
46 | + | |
47 | + // info | |
48 | + { | |
49 | + info.transform.localScale = new Vector3(scale, scale, 1); | |
50 | + //info.transform.position -= new Vector3(0, 540 * (1F - scale), 0); | |
51 | + } | |
52 | + } | |
53 | + | |
54 | +} | ... | ... |
... | ... | @@ -0,0 +1,12 @@ |
1 | +fileFormatVersion: 2 | |
2 | +guid: ce16815e8dc049b4da420d411c6e0f52 | |
3 | +timeCreated: 1443132844 | |
4 | +licenseType: Pro | |
5 | +MonoImporter: | |
6 | + serializedVersion: 2 | |
7 | + defaultReferences: [] | |
8 | + executionOrder: 0 | |
9 | + icon: {instanceID: 0} | |
10 | + userData: | |
11 | + assetBundleName: | |
12 | + assetBundleVariant: | ... | ... |
... | ... | @@ -0,0 +1,36 @@ |
1 | +using UnityEngine; | |
2 | +using UnityEngine.UI; | |
3 | + | |
4 | +public class UIManagerLoading : UIManager { | |
5 | + | |
6 | + public Text text; | |
7 | + public Image image; | |
8 | + | |
9 | + protected override void rebuild(float scale) | |
10 | + { | |
11 | + float textHeight = Screen.height / 2; | |
12 | + | |
13 | + // text | |
14 | + { | |
15 | + text.fontSize = (int)( text.fontSize * scale ); | |
16 | + | |
17 | + Vector2 textSize = text.GetComponent<RectTransform>().sizeDelta; | |
18 | + textSize.y = textHeight; | |
19 | + text.GetComponent<RectTransform>().sizeDelta = textSize; | |
20 | + | |
21 | + Vector3 textPosition = text.transform.position; | |
22 | + textPosition.y = (3 * Screen.height) / 4; | |
23 | + text.transform.position = textPosition; | |
24 | + } | |
25 | + | |
26 | + // image | |
27 | + { | |
28 | + image.transform.localScale = new Vector3(scale, scale, 1); | |
29 | + | |
30 | + Vector3 imagePosition = image.transform.position; | |
31 | + imagePosition.y = textHeight - (90 * scale); | |
32 | + image.transform.position = imagePosition; | |
33 | + } | |
34 | + } | |
35 | + | |
36 | +} | ... | ... |
... | ... | @@ -0,0 +1,12 @@ |
1 | +fileFormatVersion: 2 | |
2 | +guid: 823c98ddc010736408f7ed99ec13991e | |
3 | +timeCreated: 1443546340 | |
4 | +licenseType: Pro | |
5 | +MonoImporter: | |
6 | + serializedVersion: 2 | |
7 | + defaultReferences: [] | |
8 | + executionOrder: 0 | |
9 | + icon: {instanceID: 0} | |
10 | + userData: | |
11 | + assetBundleName: | |
12 | + assetBundleVariant: | ... | ... |
... | ... | @@ -0,0 +1,17 @@ |
1 | +using UnityEngine; | |
2 | +using UnityEngine.UI; | |
3 | + | |
4 | +public class UIManagerMain : UIManager { | |
5 | + | |
6 | + public RawImage bar; | |
7 | + public GameObject container; | |
8 | + public Text text; | |
9 | + | |
10 | + protected override void rebuild(float scale) | |
11 | + { | |
12 | + container.transform.localScale = new Vector3(scale, 1, 1); | |
13 | + bar.transform.localScale = new Vector3(1, scale, 1); | |
14 | + bar.transform.position -= new Vector3(0, 165 * (1F - scale), 0); | |
15 | + } | |
16 | + | |
17 | +} | ... | ... |
... | ... | @@ -0,0 +1,12 @@ |
1 | +fileFormatVersion: 2 | |
2 | +guid: 239edcb796cadf747a83e8ab7ad4ffa9 | |
3 | +timeCreated: 1443466662 | |
4 | +licenseType: Pro | |
5 | +MonoImporter: | |
6 | + serializedVersion: 2 | |
7 | + defaultReferences: [] | |
8 | + executionOrder: 0 | |
9 | + icon: {instanceID: 0} | |
10 | + userData: | |
11 | + assetBundleName: | |
12 | + assetBundleVariant: | ... | ... |
... | ... | @@ -0,0 +1,58 @@ |
1 | +using UnityEngine; | |
2 | +using UnityEngine.UI; | |
3 | + | |
4 | +public class UIManagerTextEntry : UIManager { | |
5 | + | |
6 | + public Button back; | |
7 | + public GameObject label; | |
8 | + public GameObject textEntry; | |
9 | + public Button translate; | |
10 | + | |
11 | + protected override void rebuild(float scale) | |
12 | + { | |
13 | + // back | |
14 | + { | |
15 | + float dist = 132 * scale * 0.75F; | |
16 | + | |
17 | + back.transform.localScale = new Vector3(scale, scale, 1); | |
18 | + back.transform.position = new Vector3(dist, Screen.height - dist); | |
19 | + } | |
20 | + | |
21 | + float labelHeight = 187.5F * scale; | |
22 | + float labelDist = labelHeight * 0.75F; | |
23 | + | |
24 | + // label | |
25 | + { | |
26 | + label.transform.localScale = new Vector3(scale, scale, 1); | |
27 | + label.transform.position = new Vector3(Screen.width / 2, Screen.height - labelDist, 0); | |
28 | + } | |
29 | + | |
30 | + float translateHeight = 152 * scale; | |
31 | + | |
32 | + // translate | |
33 | + { | |
34 | + translate.transform.localScale = new Vector3(scale, scale, 1); | |
35 | + translate.transform.localPosition = new Vector3(translate.transform.localPosition.x, - translateHeight, 0); | |
36 | + } | |
37 | + | |
38 | + // textEntry | |
39 | + { | |
40 | + float labelBottom = labelDist + labelHeight - (33 * scale); | |
41 | + float margin = 80 * scale; | |
42 | + float barTop = 165 * scale; | |
43 | + | |
44 | + float marginTop = labelBottom + margin; | |
45 | + float marginBottom = barTop + translateHeight + (translateHeight / 2) + margin; | |
46 | + | |
47 | + float height = Screen.height - marginTop - marginBottom; | |
48 | + | |
49 | + Vector2 size = textEntry.GetComponent<RectTransform>().sizeDelta; | |
50 | + | |
51 | + textEntry.transform.position = new Vector3(textEntry.transform.position.x, Screen.height - marginTop - (height / 2), 0); | |
52 | + | |
53 | + size.y = Screen.height - marginTop - marginBottom; | |
54 | + textEntry.GetComponent<RectTransform>().sizeDelta = size; | |
55 | + } | |
56 | + } | |
57 | + | |
58 | +} | |
0 | 59 | \ No newline at end of file | ... | ... |
... | ... | @@ -0,0 +1,12 @@ |
1 | +fileFormatVersion: 2 | |
2 | +guid: d103555d2f5d21347af354358e25dc88 | |
3 | +timeCreated: 1443467094 | |
4 | +licenseType: Pro | |
5 | +MonoImporter: | |
6 | + serializedVersion: 2 | |
7 | + defaultReferences: [] | |
8 | + executionOrder: 0 | |
9 | + icon: {instanceID: 0} | |
10 | + userData: | |
11 | + assetBundleName: | |
12 | + assetBundleVariant: | ... | ... |
... | ... | @@ -0,0 +1,28 @@ |
1 | +using UnityEngine; | |
2 | +using UnityEngine.UI; | |
3 | + | |
4 | +public class UIManagerTutorial : UIManager { | |
5 | + | |
6 | + public GameObject bar; | |
7 | + public Button next; | |
8 | + public GameObject container; | |
9 | + public Button exit; | |
10 | + public RawImage text; | |
11 | + | |
12 | + protected override void rebuild(float scale) | |
13 | + { | |
14 | + container.transform.localScale = new Vector3(scale, 1, 1); | |
15 | + next.transform.localScale = new Vector3(scale, 1, 1); | |
16 | + bar.transform.localScale = new Vector3(1, scale, 1); | |
17 | + | |
18 | + bar.transform.position -= new Vector3(0, 165 * (1F - scale), 0); | |
19 | + next.transform.localPosition = new Vector3((Screen.width / 2) - (122.4F * scale), 0, 0); | |
20 | + | |
21 | + exit.transform.localScale = new Vector3(scale, scale, 1); | |
22 | + float dist = 116 * scale * 0.75F; | |
23 | + exit.transform.position = new Vector3(Screen.width - dist, Screen.height - dist, 0); | |
24 | + | |
25 | + text.transform.localScale = new Vector3(scale, scale, 1); | |
26 | + } | |
27 | + | |
28 | +} | ... | ... |
... | ... | @@ -0,0 +1,12 @@ |
1 | +fileFormatVersion: 2 | |
2 | +guid: be116c0f4c187cf4b9ce79930d230d35 | |
3 | +timeCreated: 1443215773 | |
4 | +licenseType: Pro | |
5 | +MonoImporter: | |
6 | + serializedVersion: 2 | |
7 | + defaultReferences: [] | |
8 | + executionOrder: 0 | |
9 | + icon: {instanceID: 0} | |
10 | + userData: | |
11 | + assetBundleName: | |
12 | + assetBundleVariant: | ... | ... |