2 files added
3 files modified
| | |
| | | - _OcclusionStrength: 1 |
| | | - _Parallax: 0.02 |
| | | - _Slider: 81.39478 |
| | | - _SliderX: 79 |
| | | - _SliderY: 265 |
| | | - _SliderX: 75 |
| | | - _SliderY: 80 |
| | | - _SmoothnessTextureChannel: 0 |
| | | - _SpecularHighlights: 1 |
| | | - _SrcBlend: 1 |
| | |
| | | - _UseUIAlphaClip: 0 |
| | | - _ZWrite: 1 |
| | | m_Colors: |
| | | - _Center: {r: -145, g: 155, b: 0, a: 0} |
| | | - _Center: {r: 6, g: -198, b: 0, a: 0} |
| | | - _Color: {r: 1, g: 1, b: 1, a: 1} |
| | | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
| | | m_BuildTextureStacks: [] |
| | |
| | | - component: {fileID: 3500089012037290717} |
| | | - component: {fileID: 5412150953340497031} |
| | | - component: {fileID: 2454855297502576287} |
| | | - component: {fileID: 1954608709776458550} |
| | | m_Layer: 5 |
| | | m_Name: YesBtn |
| | | m_TagString: Untagged |
| | |
| | | m_OnClick: |
| | | m_PersistentCalls: |
| | | m_Calls: [] |
| | | --- !u!114 &1954608709776458550 |
| | | MonoBehaviour: |
| | | m_ObjectHideFlags: 0 |
| | | m_CorrespondingSourceObject: {fileID: 0} |
| | | m_PrefabInstance: {fileID: 0} |
| | | m_PrefabAsset: {fileID: 0} |
| | | m_GameObject: {fileID: 7595875840908491239} |
| | | m_Enabled: 1 |
| | | m_EditorHideFlags: 0 |
| | | m_Script: {fileID: 11500000, guid: d180bd5a32e2da54997fbca35bd105b2, type: 3} |
| | | m_Name: |
| | | m_EditorClassIdentifier: |
| | | --- !u!1 &7633428682643729656 |
| | | GameObject: |
| | | m_ObjectHideFlags: 0 |
| | |
| | | - component: {fileID: 3536859950190321500} |
| | | - component: {fileID: 2456097878878013708} |
| | | - component: {fileID: 2164442026174616748} |
| | | - component: {fileID: 267156631338074081} |
| | | m_Layer: 5 |
| | | m_Name: NoBtn |
| | | m_TagString: Untagged |
| | |
| | | m_OnClick: |
| | | m_PersistentCalls: |
| | | m_Calls: [] |
| | | --- !u!114 &267156631338074081 |
| | | MonoBehaviour: |
| | | m_ObjectHideFlags: 0 |
| | | m_CorrespondingSourceObject: {fileID: 0} |
| | | m_PrefabInstance: {fileID: 0} |
| | | m_PrefabAsset: {fileID: 0} |
| | | m_GameObject: {fileID: 7726713475573729219} |
| | | m_Enabled: 1 |
| | | m_EditorHideFlags: 0 |
| | | m_Script: {fileID: 11500000, guid: d180bd5a32e2da54997fbca35bd105b2, type: 3} |
| | | m_Name: |
| | | m_EditorClassIdentifier: |
| | |
| | | - component: {fileID: 1525511254} |
| | | - component: {fileID: 1525511253} |
| | | - component: {fileID: 1525511252} |
| | | - component: {fileID: 1525511255} |
| | | m_Layer: 5 |
| | | m_Name: SelectBtn |
| | | m_TagString: Untagged |
| | |
| | | m_PrefabAsset: {fileID: 0} |
| | | m_GameObject: {fileID: 1525511250} |
| | | m_CullTransparentMesh: 0 |
| | | --- !u!114 &1525511255 |
| | | MonoBehaviour: |
| | | m_ObjectHideFlags: 0 |
| | | m_CorrespondingSourceObject: {fileID: 0} |
| | | m_PrefabInstance: {fileID: 0} |
| | | m_PrefabAsset: {fileID: 0} |
| | | m_GameObject: {fileID: 1525511250} |
| | | m_Enabled: 1 |
| | | m_EditorHideFlags: 0 |
| | | m_Script: {fileID: 11500000, guid: d180bd5a32e2da54997fbca35bd105b2, type: 3} |
| | | m_Name: |
| | | m_EditorClassIdentifier: |
| | | --- !u!1 &1532824631 |
| | | GameObject: |
| | | m_ObjectHideFlags: 0 |
| | |
| | | - component: {fileID: 1953656509} |
| | | - component: {fileID: 1953656508} |
| | | - component: {fileID: 1953656507} |
| | | - component: {fileID: 1953656511} |
| | | m_Layer: 5 |
| | | m_Name: TowerBuyBtn |
| | | m_TagString: Untagged |
| | |
| | | m_PrefabAsset: {fileID: 0} |
| | | m_GameObject: {fileID: 1953656505} |
| | | m_CullTransparentMesh: 0 |
| | | --- !u!114 &1953656511 |
| | | MonoBehaviour: |
| | | m_ObjectHideFlags: 0 |
| | | m_CorrespondingSourceObject: {fileID: 0} |
| | | m_PrefabInstance: {fileID: 0} |
| | | m_PrefabAsset: {fileID: 0} |
| | | m_GameObject: {fileID: 1953656505} |
| | | m_Enabled: 1 |
| | | m_EditorHideFlags: 0 |
| | | m_Script: {fileID: 11500000, guid: d180bd5a32e2da54997fbca35bd105b2, type: 3} |
| | | m_Name: |
| | | m_EditorClassIdentifier: |
| | | --- !u!1 &1961648157 |
| | | GameObject: |
| | | m_ObjectHideFlags: 0 |
New file |
| | |
| | | using UnityEngine; |
| | | using UnityEngine.EventSystems; |
| | | |
| | | public class ChangeBtnScale : MonoBehaviour, IPointerDownHandler, IPointerUpHandler |
| | | { |
| | | RectTransform rect; |
| | | Vector3 down = new Vector3(0.9f, 0.9f, 0.9f); |
| | | |
| | | public void OnPointerDown(PointerEventData eventData) |
| | | { |
| | | rect.localScale = down; |
| | | } |
| | | |
| | | public void OnPointerUp(PointerEventData eventData) |
| | | { |
| | | rect.localScale = Vector3.one; |
| | | } |
| | | |
| | | // Start is called before the first frame update |
| | | private void Awake() |
| | | { |
| | | rect = GetComponent<RectTransform>(); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: d180bd5a32e2da54997fbca35bd105b2 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |