From a6a033ae55439d864c8ea22973b659b002601fa4 Mon Sep 17 00:00:00 2001 From: Georgy Shive Date: Fri, 14 Mar 2025 03:09:15 +0700 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=81=D0=BB=D1=83=D1=88=D0=B0=D1=82=D0=B5=D0=BB=D1=8C=20=D1=8D?= =?UTF-8?q?=D0=BC=D0=B8=D1=82=D0=B5=D1=80=D0=B0=20=D0=B4=D0=B2=D0=B8=D0=B6?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BD=D0=B0=20=D0=BA=D0=BB=D0=B0?= =?UTF-8?q?=D1=81=D1=81=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D1=89=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=B5=D1=80=D1=81=D0=BE=D0=BD=D0=B0?= =?UTF-8?q?=D0=B6=D0=B0=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=8D=D0=BC=D0=B8=D1=82=D0=B5=D1=80=20=D0=B2=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD=D1=82=20=D1=81=D0=BE=D0=B4?= =?UTF-8?q?=D0=B5=D1=80=D0=B6=D0=B0=D1=89=D0=B8=D0=B9=20=D0=BA=D0=BD=D0=BE?= =?UTF-8?q?=D0=BF=D0=BA=D1=83=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D1=89?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B2=20=D1=81=D1=82=D0=B0=D1=80?= =?UTF-8?q?=D1=82=D0=BE=D0=B2=D0=BE=D0=B5=20=D0=BF=D0=BE=D0=BB=D0=BE=D0=B6?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B0=D1=81=D1=81=D0=B5=D1=82=20=D0=B4=D0=BE=D0=BC?= =?UTF-8?q?=D0=B0=20=D0=B8=D0=B7=20=D1=84=D0=B8=D0=B3=D0=BC=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Icons.meta | 9 + assets/Icons/Home.meta | 9 + assets/Icons/Home/home.svg | 55 + assets/Icons/Home/home.svg.meta | 12 + assets/Icons/Home/home_hover.png | Bin 0 -> 1562 bytes assets/Icons/Home/home_hover.png.meta | 134 +++ assets/Icons/Home/home_normal.png | Bin 0 -> 1471 bytes assets/Icons/Home/home_normal.png.meta | 134 +++ assets/Icons/Home/home_pressed.png | Bin 0 -> 1666 bytes assets/Icons/Home/home_pressed.png.meta | 134 +++ assets/Scenes/scene.scene | 1028 +++++++++-------- assets/Scripts/FirstPersonController.ts | 43 +- .../ui/ReturnCameraButtonController.ts | 77 ++ .../ui/ReturnCameraButtonController.ts.meta | 9 + 14 files changed, 1149 insertions(+), 495 deletions(-) create mode 100644 assets/Icons.meta create mode 100644 assets/Icons/Home.meta create mode 100644 assets/Icons/Home/home.svg create mode 100644 assets/Icons/Home/home.svg.meta create mode 100644 assets/Icons/Home/home_hover.png create mode 100644 assets/Icons/Home/home_hover.png.meta create mode 100644 assets/Icons/Home/home_normal.png create mode 100644 assets/Icons/Home/home_normal.png.meta create mode 100644 assets/Icons/Home/home_pressed.png create mode 100644 assets/Icons/Home/home_pressed.png.meta create mode 100644 assets/Scripts/ui/ReturnCameraButtonController.ts create mode 100644 assets/Scripts/ui/ReturnCameraButtonController.ts.meta diff --git a/assets/Icons.meta b/assets/Icons.meta new file mode 100644 index 0000000..f129525 --- /dev/null +++ b/assets/Icons.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.2.0", + "importer": "directory", + "imported": true, + "uuid": "f768e02a-5281-4724-8a00-cec2a7ba283f", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/Icons/Home.meta b/assets/Icons/Home.meta new file mode 100644 index 0000000..3b9c0e0 --- /dev/null +++ b/assets/Icons/Home.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.2.0", + "importer": "directory", + "imported": true, + "uuid": "a42e84ca-7587-4696-a1be-490a772e5c32", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/Icons/Home/home.svg b/assets/Icons/Home/home.svg new file mode 100644 index 0000000..c314fe7 --- /dev/null +++ b/assets/Icons/Home/home.svg @@ -0,0 +1,55 @@ + + + + + + + diff --git a/assets/Icons/Home/home.svg.meta b/assets/Icons/Home/home.svg.meta new file mode 100644 index 0000000..4c410df --- /dev/null +++ b/assets/Icons/Home/home.svg.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.0.0", + "importer": "*", + "imported": true, + "uuid": "34368a77-231e-4b7e-81e0-4e6812239e21", + "files": [ + ".json", + ".svg" + ], + "subMetas": {}, + "userData": {} +} diff --git a/assets/Icons/Home/home_hover.png b/assets/Icons/Home/home_hover.png new file mode 100644 index 0000000000000000000000000000000000000000..e7a32669ce37f42bf66146385b7abe428723df2a GIT binary patch literal 1562 zcmV+#2IcvQP)002t}1^@s6I8J)%00009a7bBm001r{ z001r{0eGc9b^rhX8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H11*b_w zK~#90?VMd~6jd08pKo@%yOf^>Nr4LkXak875QMfQngD7<`>jddU8E1C3j!~hbrfFcE2vV8~oe6as&S_+nozCt8o*8Uk3LTkbdg;+E zTn?Z#UxapL)wJYh*y(I99-=BMgf-75sjP6na0C`+^Vy!7mfVaW>va8{VO&`bvEUYF z-fOYBKFOGo!f$^m>-Od8?z6qR4=rAlRF|6D4DD|tFGQ{YvMgr=eV^iPs94fWjs3Fc||z-mCdXBb6oM(&?{(N*VfE8<`sKW z5?R&F{qsa*zt`Pv(pcfOWo6tm&ilsp-OtLZJvq)^@TymS5!EGK?dc;XHTxk@S=VDh zi=vx=gj?IkXIiYSD`Qy7fB)GWv>nWIsHfo7RDrgh5$RWS1D=bXUjmcmHx?u;Sn))X zW%FHKx^nP%f%f zEvwYAASg;1FMP=gGZq9zDdL5vtSDkZPy`(>TxDI41@8dE+&Y<6WwB{VlDh(o1wrxa z6=m(dJSWe2&a|tbFLZCs>~(73D66)){}Dwx!TA$O5vZS=;H4*%B!-Z-3R z@23SkCXx#JSl8Cf$Hji=I7Ef#aS=5<1FcKTXjnM3MZvYTv|(YA)}>_(&$u>~>*Fqp z%P?iU(@(0#3%eUr%%3*IE&Yf2(=2v3rl=b4wp=)m+jz9KQ!I8iq?lMa^wuXoOso`k zHl(PXV*ZCVK4bbsi6lP-$*|P5ahP&v&7+8kWf>65G9a`qN8eslK0HzI^QnMuMh=5T zvlC1j8_vxp6j>+F*{s~2V;~=V-}{di*!El*v#LrzNkW;1+YaSRA_`z2f35#82t`(( z=jTg9yZ;-6BC8PC!>DNbzd?LAG$7IqxDVfFdG40EnM=PbpPdfrGAcr(vX;zE7~REA zp0gvB6;DG0Vp#^nvJ8l284$}dAeLo7EX#mcmI1LW17cYQ#Ig*CWf>65G9Z>^KrG9E zSe5~?ECXU$2E?)qh-DezEK4Z5Dcb9mk2{5e(>NT)4Q{ejFBLm{_Q(H+t-c=|#-aL? z(>ZR_u&>y`qo-_+or&&oR1h3HWAnMgBQDj6jmEyb)UQtU}1;tPNAELl2CsE+>`2KiX`lIUR{>_4{4ZJjA%qa#rn1qjODVsTk-V?7iQwHb|2 z4k)63fL!rc0(pUpz$xHR`H1w9Pd4Ctk7eXvV|OPJ|8HnOEX#m@0PenS{8M_=qW}N^ M07*qoM6N<$g31Ho_y7O^ literal 0 HcmV?d00001 diff --git a/assets/Icons/Home/home_hover.png.meta b/assets/Icons/Home/home_hover.png.meta new file mode 100644 index 0000000..bfeb24f --- /dev/null +++ b/assets/Icons/Home/home_hover.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.27", + "importer": "image", + "imported": true, + "uuid": "abe4c801-ca4a-4f3a-aafc-ca985258544d", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "abe4c801-ca4a-4f3a-aafc-ca985258544d@6c48a", + "displayName": "home_hover", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "abe4c801-ca4a-4f3a-aafc-ca985258544d", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "abe4c801-ca4a-4f3a-aafc-ca985258544d@f9941", + "displayName": "home_hover", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 6, + "trimY": 3, + "width": 63, + "height": 69, + "rawWidth": 75, + "rawHeight": 75, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -31.5, + -34.5, + 0, + 31.5, + -34.5, + 0, + -31.5, + 34.5, + 0, + 31.5, + 34.5, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 6, + 72, + 69, + 72, + 6, + 3, + 69, + 3 + ], + "nuv": [ + 0.08, + 0.04, + 0.92, + 0.04, + 0.08, + 0.96, + 0.92, + 0.96 + ], + "minPos": [ + -31.5, + -34.5, + 0 + ], + "maxPos": [ + 31.5, + 34.5, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "abe4c801-ca4a-4f3a-aafc-ca985258544d@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "hasAlpha": true, + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": false, + "redirect": "abe4c801-ca4a-4f3a-aafc-ca985258544d@6c48a" + } +} diff --git a/assets/Icons/Home/home_normal.png b/assets/Icons/Home/home_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..0dd08bed7d2f75ffd1b3161cdb3489a60fd5e02f GIT binary patch literal 1471 zcmbVM`8yK~9G_6wyGZU4kJp^bef7ll@=k4XGd2-R%QcLZEmMw)rJ8b-D`&i}SmX5y zb5=55N5|$EHb>-*=}nRIUH`)SJfGwHe4gj?`SE+l!|g0cMok6)0Dw?PgqO(A{iM`k zk=nW?tcXmSh{Tcr0OMbOQjAgwj~9iiSDY|cykjn3A>-ok05X|u93CA>3c(Ta#xZfB zg==6d9Rs08HA1BneM$2a2J7Ip)7XY$5S`RUD#koSbbo!Iyh z7TJ3EYp7tDI=eHI{(?NiS}HPfHh}gZUj}v)d)aS;5j;sAvNo-TKAKFF&4`iD*ly4$ zqO~_fBA@e`*pW5p^`jo~eIH@B(Do-gl>Gv2bxVwDWoUI7PM!2I#SL5);*?kZ@YuGVXp2yxD2CcVlHU~?jW6}Us)TgyiugR>BKIE zS8YnGCL++j-T$~R9c-^J=Sn;gg@v_anaED8aa2!Ip1o>;Ur%eHAW<1g6{o9jx@uyn z$7<`fqQsJ=>~`b`4Ji*H2ZWJR47>?pLY(fN@7b(eHegtXPwnpShBmhTTgZQ=$XJGL z=3Q6C>{|z{e6uIKMtMAm`gkvzAsctuU5@nc+DJ6o=s^egC&RexK)da8q$ex=b;gs#<&i@TYI58A2@a!UYIA z^Z2gRj7qj*^GOxYL*G8E_s-vhbH4YjU$h8V+XPunUQl_6F23C6%mBYaG`6y3!myyG z+O$NZd8igkad`g|I6H5#k^{|-N--!8Gik=( z9#hKG{`_5=QO}q<PG6v~+a{GdfH?_}e3FeN{748$ zv|~$_eiVI^p50l7O$lu~AAS``%+2*@+w}|NTHy~BQmlZbxY&JpsP8t(qYK!wCSC$W zLFDbmKMV;RHQQjj-WiG%nsct>R76;S7q46^C}=(_k!3IvDe)pcQ9qirLtslR zQzVrRYeeYFD-92E?eVG9d)#Z0aNlAZP-j?j?Uy#H(h>Ch*KZ?*Rb7oO_1NsWPbDr{ z>bY>)z|Sw`K=sg{&@PPI*fSZO6jP=SEp|Yp|0MAnoJprxGz4c%$RF@46K4G2#jK^< zM+#C5K9Xd0vIdELbRxn5CQQ>1ESx~sW&Ex^+ z_d*8)mbk$639jJ7{MmXY2l@sM1UmN*Q1BCj9^yvl{wGYZl4s}DLx6ARAWJt+G*moj zV9NJu-flU9VVOd=ID2TduJ-GEm>5^!Q?|OQYD;mcYbc-Rn~e+2pXz#Tb@YVrJaR{k zkDAEx*7PYWRv2^eWtWY-VRf@9pxf(x8<}N0(CMxXj6+ozd206Ri4G~RN4nwymJROU z%$@@$9o$!YIN2ozY>`u5s?d0C-8tA^VdhH`P5xDajVIqCadw)$G~jP74!-~Ru={iX3sV|C=Z(EKuP;uQyyRoE{*IVJOdX64G0Q`cmF3F(G zC>XS7*mFujPY$-amoL5|wQnTfC=AjO?t+hwAAqbFOv^2>#heVoD3}iuJzoII$qmuq H7@Ybad7Y=7 literal 0 HcmV?d00001 diff --git a/assets/Icons/Home/home_normal.png.meta b/assets/Icons/Home/home_normal.png.meta new file mode 100644 index 0000000..94c8542 --- /dev/null +++ b/assets/Icons/Home/home_normal.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.27", + "importer": "image", + "imported": true, + "uuid": "a69a42c0-5153-4727-a259-46e20a71889f", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "a69a42c0-5153-4727-a259-46e20a71889f@6c48a", + "displayName": "home_normal", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "a69a42c0-5153-4727-a259-46e20a71889f", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "a69a42c0-5153-4727-a259-46e20a71889f@f9941", + "displayName": "home_normal", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 6, + "trimY": 3, + "width": 63, + "height": 69, + "rawWidth": 75, + "rawHeight": 75, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -31.5, + -34.5, + 0, + 31.5, + -34.5, + 0, + -31.5, + 34.5, + 0, + 31.5, + 34.5, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 6, + 72, + 69, + 72, + 6, + 3, + 69, + 3 + ], + "nuv": [ + 0.08, + 0.04, + 0.92, + 0.04, + 0.08, + 0.96, + 0.92, + 0.96 + ], + "minPos": [ + -31.5, + -34.5, + 0 + ], + "maxPos": [ + 31.5, + 34.5, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "a69a42c0-5153-4727-a259-46e20a71889f@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "hasAlpha": true, + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": false, + "redirect": "a69a42c0-5153-4727-a259-46e20a71889f@6c48a" + } +} diff --git a/assets/Icons/Home/home_pressed.png b/assets/Icons/Home/home_pressed.png new file mode 100644 index 0000000000000000000000000000000000000000..fefa799be7eaac931e5af6df8c57b8e84873a11d GIT binary patch literal 1666 zcmV-|27UR7P)002t}1^@s6I8J)%00009a7bBm001r{ z001r{0eGc9b^rhX8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H11`kO@ zK~#90?VNpV6J;F7zrVJlYxm-?hUpwEGMpPjguUPlhznq_odJT=1O-gMm&61m8fCl) zjtER*!ZZ@pK#T#MQA|WFWn_T>L1m>iA|whUGZQ6DCVP=>9c_R9u@M*Oy*%69wTt)p z^ZL8ze)q{e&;9Q1c}mO-6LnbPoxn)KlqG;I-U$rG{)oSjEY@lQ-^ZYzI2zdyI#7Bh z-g#Yz5@pPCxPyy9`~d*xpv}D?tmyF;?~GSogNeH=@-*2U)UlNrFG>b6?e0wrJo7}^cVb0XbN){ls3;jr5xct_Ew zCGFqddqs=f)L__^m0IDSk_=l=NmQ0A3Gc1QL6$2?wmoK4gra@^)C&I;O%s*D5Lpg) zaB+k!#{uNZ#m$(MitpYnz;gF(Xxu&#v!mIId~md6 zjQ2zbmcQMMj;j&bV=@q=NTjl-ep>U8l2$+$Sq}Hfau9t6g}dE7W0O(0HWvlsk`>!* z`ZI(@Z=T2L-xM#LHfDON*H=`pK4W!gI%W}poSwicHD$pQ<+tMaI|Zsl0l#rBD|U`y8G?4OMG=ep+2wYRdwfmGH*WEWGmg?L$7+F5hLmyrTtuVfoy(E-y5Z zm0IDS5@E|;DBSI`TuJz3&3Kd*qz?O-!E@bMwCOxrTKkkjTPz%{yy`3U5BHeEmL>7F z;3j5FO2wYlU9zJ3y+tuu_JZ#Co4kDW@Pn!LRjvaI2j1zKTbc`+neT9yS`VMKW$ zEK85FKr8evFI3-J^(+gtLhtfI)s7TfExhmH?EUbeAifmY;YC*#Pre9TsU3wsm7vdSi=ASHQZPmxGTwxDccitv6T z`>YMdlqG;EO8~>B9R2cpFZMLFq5Yq*W^HDq+OT+z3;AP>x!D*Z>&U4tELh)!-oB{j zZExS#imx_Kz(bSMG;jMx4C#hdJ1^)W3IKZhqNv(=L6^2~#1L7hoAsSmrFZ++F+^54 zqVMDrz1zQzc{dawt`l%Q({8~X3bSPfbFu9j_BVFun2|hjmG#oXOw1Ixiyb}H6<1ki zHx$5>C4ebQ08^F#rYr$WSpt}{1TbX@V9FA}lqG;EO8`@r0H!PfOj!b$vIHEC~3o&A!Hy|s^@>i^_DpoIy2!3wvmiUD(N$n$d zWu1$))%!y`4h9rgVI?#N1D)_meNv;?=MBhwHzb0W8L!{CJ<333brYVP3wubI6TFo0ETNtTcoSEVYEQkVI0o<)cf(gRe zDDi6{Z^=G2!9pupsU(nO&!o8oJPPJQ0ArwbCJrMFgmi$2!QI4s1w`WGAu}=2XaYG0 zM%GRc6qkGr5C+f+qB9)fZ$hE2dOlpPdPZ>E|Hf`4VLlrQV9FBUU;pcTwDPBDvj6}9 M07*qoM6N<$g2!$CCIA2c literal 0 HcmV?d00001 diff --git a/assets/Icons/Home/home_pressed.png.meta b/assets/Icons/Home/home_pressed.png.meta new file mode 100644 index 0000000..ad3fde3 --- /dev/null +++ b/assets/Icons/Home/home_pressed.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.27", + "importer": "image", + "imported": true, + "uuid": "5de15a5b-39ad-47de-b9f6-247a4f379169", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "5de15a5b-39ad-47de-b9f6-247a4f379169@6c48a", + "displayName": "home_pressed", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "5de15a5b-39ad-47de-b9f6-247a4f379169", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "5de15a5b-39ad-47de-b9f6-247a4f379169@f9941", + "displayName": "home_pressed", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 6, + "trimY": 3, + "width": 63, + "height": 69, + "rawWidth": 75, + "rawHeight": 75, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -31.5, + -34.5, + 0, + 31.5, + -34.5, + 0, + -31.5, + 34.5, + 0, + 31.5, + 34.5, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 6, + 72, + 69, + 72, + 6, + 3, + 69, + 3 + ], + "nuv": [ + 0.08, + 0.04, + 0.92, + 0.04, + 0.08, + 0.96, + 0.92, + 0.96 + ], + "minPos": [ + -31.5, + -34.5, + 0 + ], + "maxPos": [ + 31.5, + 34.5, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "5de15a5b-39ad-47de-b9f6-247a4f379169@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "hasAlpha": true, + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": false, + "redirect": "5de15a5b-39ad-47de-b9f6-247a4f379169@6c48a" + } +} diff --git a/assets/Scenes/scene.scene b/assets/Scenes/scene.scene index e98251b..c5ff6b9 100644 --- a/assets/Scenes/scene.scene +++ b/assets/Scenes/scene.scene @@ -29,19 +29,19 @@ "__id__": 182 }, { - "__id__": 352 + "__id__": 355 }, { - "__id__": 354 + "__id__": 357 }, { - "__id__": 356 + "__id__": 359 } ], "_active": true, "_components": [], "_prefab": { - "__id__": 357 + "__id__": 360 }, "_lpos": { "__type__": "cc.Vec3", @@ -72,7 +72,7 @@ }, "autoReleaseAssets": false, "_globals": { - "__id__": 358 + "__id__": 361 }, "_id": "955c22b7-7b7e-4af8-ad45-8415a0c23e60" }, @@ -6049,26 +6049,26 @@ { "__id__": 294 }, - { - "__id__": 304 - }, { "__id__": 275 }, { "__id__": 213 + }, + { + "__id__": 342 } ], "_active": true, "_components": [ { - "__id__": 349 + "__id__": 352 }, { - "__id__": 350 + "__id__": 353 }, { - "__id__": 351 + "__id__": 354 } ], "_prefab": null, @@ -6160,7 +6160,7 @@ "_priority": 1073741824, "_fov": 45, "_fovAxis": 0, - "_orthoHeight": 360, + "_orthoHeight": 381.2971342383107, "_near": 1, "_far": 2000, "_color": { @@ -10170,7 +10170,7 @@ "__prefab": null, "_contentSize": { "__type__": "cc.Size", - "width": 185.98346024525316, + "width": 185.9417589151045, "height": 25.2 }, "_anchorPoint": { @@ -10203,7 +10203,7 @@ "_string": "Список оборудования", "_horizontalAlign": 1, "_verticalAlign": 1, - "_actualFontSize": 32.64236111111111, + "_actualFontSize": 30.819140625000003, "_fontSize": 17, "_fontFamily": "Arial", "_lineHeight": 20, @@ -10333,343 +10333,6 @@ }, "_id": "97tmghfFlEGLXFvLDonHH+" }, - { - "__type__": "cc.Node", - "_name": "ReturnCameraButton", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 182 - }, - "_children": [ - { - "__id__": 295 - } - ], - "_active": true, - "_components": [ - { - "__id__": 299 - }, - { - "__id__": 300 - }, - { - "__id__": 301 - }, - { - "__id__": 303 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": -613.25, - "y": -313.554, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.468, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "f5SRiOyCJJTbFw/cS/m30x" - }, - { - "__type__": "cc.Node", - "_name": "CameraImage", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 294 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 296 - }, - { - "__id__": 297 - }, - { - "__id__": 298 - } - ], - "_prefab": null, - "_lpos": { - "__type__": "cc.Vec3", - "x": -49.534, - "y": -20.035, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 2, - "y": 0.8, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "fcU00nb+JNKbK4KL7pOnAg" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 295 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_id": "79Mo6jp6BMEaGEtJ+7ZR37" - }, - { - "__type__": "cc.Graphics", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 295 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_lineWidth": 2, - "_strokeColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_lineJoin": 2, - "_lineCap": 0, - "_fillColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_miterLimit": 10, - "_id": "9fNCL8LbFJ0rp1k0F8giok" - }, - { - "__type__": "eef12r3t1hH0I2G/puA3r6+", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 295 - }, - "_enabled": true, - "__prefab": null, - "_id": "5daQJfReNIerty30S+Y5zZ" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 294 - }, - "_enabled": true, - "__prefab": null, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 40 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "abePSkwbVKmboFEQBsdioC" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 294 - }, - "_enabled": true, - "__prefab": null, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 1, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "b5uvhHMRVJl5PxIdehjOin" - }, - { - "__type__": "cc.Button", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 294 - }, - "_enabled": true, - "__prefab": null, - "clickEvents": [ - { - "__id__": 302 - } - ], - "_interactable": true, - "_transition": 2, - "_normalColor": { - "__type__": "cc.Color", - "r": 214, - "g": 214, - "b": 214, - "a": 255 - }, - "_hoverColor": { - "__type__": "cc.Color", - "r": 211, - "g": 211, - "b": 211, - "a": 255 - }, - "_pressedColor": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_disabledColor": { - "__type__": "cc.Color", - "r": 124, - "g": 124, - "b": 124, - "a": 255 - }, - "_normalSprite": { - "__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_hoverSprite": { - "__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_pressedSprite": { - "__uuid__": "544e49d6-3f05-4fa8-9a9e-091f98fc2ce8@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_disabledSprite": { - "__uuid__": "951249e0-9f16-456d-8b85-a6ca954da16b@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_duration": 0.1, - "_zoomScale": 1.2, - "_target": { - "__id__": 294 - }, - "_id": "b0qrCca/9OLZnSLlYjdPgL" - }, - { - "__type__": "cc.ClickEvent", - "target": { - "__id__": 294 - }, - "component": "", - "_componentId": "f9840lS54pAqo74KWdHx4Ej", - "handler": "resetPlayerTransform", - "customEventData": "" - }, - { - "__type__": "f9840lS54pAqo74KWdHx4Ej", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 294 - }, - "_enabled": true, - "__prefab": null, - "player": { - "__id__": 5 - }, - "_id": "26T8VtZcpOwqWPKMEgwJjI" - }, { "__type__": "cc.Node", "_name": "Error", @@ -10680,19 +10343,22 @@ }, "_children": [ { - "__id__": 305 + "__id__": 295 }, { - "__id__": 331 + "__id__": 321 }, { - "__id__": 333 + "__id__": 323 }, { - "__id__": 308 + "__id__": 298 }, { - "__id__": 336 + "__id__": 326 + }, + { + "__id__": 339 } ], "_active": true, @@ -10733,13 +10399,13 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 304 + "__id__": 294 }, "_children": [], "_active": true, "_components": [ { - "__id__": 306 + "__id__": 296 } ], "_prefab": null, @@ -10778,7 +10444,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 305 + "__id__": 295 }, "_enabled": true, "__prefab": null, @@ -10791,11 +10457,11 @@ "__expectedType__": "cc.Prefab" }, "scrollView": { - "__id__": 307 + "__id__": 297 }, "spacing": 10, "header": { - "__id__": 328 + "__id__": 318 }, "_id": "21wy+/2mRJFqMMSBRnfwOL" }, @@ -10805,7 +10471,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 308 + "__id__": 298 }, "_enabled": true, "__prefab": null, @@ -10818,11 +10484,11 @@ "cancelInnerEvents": true, "scrollEvents": [], "_content": { - "__id__": 318 + "__id__": 308 }, "_horizontalScrollBar": null, "_verticalScrollBar": { - "__id__": 316 + "__id__": 306 }, "_id": "03zy4bBnZHkqle9e7XrL33" }, @@ -10832,29 +10498,29 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 304 + "__id__": 294 }, "_children": [ { - "__id__": 309 + "__id__": 299 }, { - "__id__": 317 + "__id__": 307 }, { - "__id__": 326 + "__id__": 316 } ], "_active": true, "_components": [ { - "__id__": 329 + "__id__": 319 }, { - "__id__": 330 + "__id__": 320 }, { - "__id__": 307 + "__id__": 297 } ], "_prefab": null, @@ -10893,26 +10559,26 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 308 + "__id__": 298 }, "_children": [ { - "__id__": 310 + "__id__": 300 } ], "_active": true, "_components": [ { - "__id__": 313 + "__id__": 303 }, { - "__id__": 314 + "__id__": 304 }, { - "__id__": 315 + "__id__": 305 }, { - "__id__": 316 + "__id__": 306 } ], "_prefab": null, @@ -10951,16 +10617,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 309 + "__id__": 299 }, "_children": [], "_active": true, "_components": [ { - "__id__": 311 + "__id__": 301 }, { - "__id__": 312 + "__id__": 302 } ], "_prefab": null, @@ -10999,7 +10665,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 310 + "__id__": 300 }, "_enabled": true, "__prefab": null, @@ -11021,7 +10687,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 310 + "__id__": 300 }, "_enabled": true, "__prefab": null, @@ -11060,7 +10726,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 309 + "__id__": 299 }, "_enabled": true, "__prefab": null, @@ -11082,7 +10748,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 309 + "__id__": 299 }, "_enabled": true, "__prefab": null, @@ -11121,7 +10787,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 309 + "__id__": 299 }, "_enabled": true, "__prefab": null, @@ -11151,15 +10817,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 309 + "__id__": 299 }, "_enabled": true, "__prefab": null, "_scrollView": { - "__id__": 307 + "__id__": 297 }, "_handle": { - "__id__": 312 + "__id__": 302 }, "_direction": 1, "_enableAutoHide": false, @@ -11172,23 +10838,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 308 + "__id__": 298 }, "_children": [ { - "__id__": 318 + "__id__": 308 } ], "_active": true, "_components": [ { - "__id__": 323 + "__id__": 313 }, { - "__id__": 324 + "__id__": 314 }, { - "__id__": 325 + "__id__": 315 } ], "_prefab": null, @@ -11227,17 +10893,17 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 317 + "__id__": 307 }, "_children": [ { - "__id__": 319 + "__id__": 309 } ], "_active": true, "_components": [ { - "__id__": 322 + "__id__": 312 } ], "_prefab": null, @@ -11276,16 +10942,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 318 + "__id__": 308 }, "_children": [], "_active": true, "_components": [ { - "__id__": 320 + "__id__": 310 }, { - "__id__": 321 + "__id__": 311 } ], "_prefab": null, @@ -11324,14 +10990,14 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 319 + "__id__": 309 }, "_enabled": true, "__prefab": null, "_contentSize": { "__type__": "cc.Size", - "width": 131.31855097903482, - "height": 25.200000000000003 + "width": 131.29982762335703, + "height": 25.2 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -11346,7 +11012,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 319 + "__id__": 309 }, "_enabled": true, "__prefab": null, @@ -11363,7 +11029,7 @@ "_string": "ScrollView content", "_horizontalAlign": 0, "_verticalAlign": 0, - "_actualFontSize": 30.72222222222222, + "_actualFontSize": 29.00625, "_fontSize": 16, "_fontFamily": "Arial", "_lineHeight": 20, @@ -11408,7 +11074,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 318 + "__id__": 308 }, "_enabled": true, "__prefab": null, @@ -11430,7 +11096,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 317 + "__id__": 307 }, "_enabled": true, "__prefab": null, @@ -11452,7 +11118,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 317 + "__id__": 307 }, "_enabled": true, "__prefab": null, @@ -11468,7 +11134,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 317 + "__id__": 307 }, "_enabled": true, "__prefab": null, @@ -11508,16 +11174,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 308 + "__id__": 298 }, "_children": [], "_active": true, "_components": [ { - "__id__": 327 + "__id__": 317 }, { - "__id__": 328 + "__id__": 318 } ], "_prefab": null, @@ -11556,7 +11222,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 326 + "__id__": 316 }, "_enabled": true, "__prefab": null, @@ -11578,7 +11244,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 326 + "__id__": 316 }, "_enabled": true, "__prefab": null, @@ -11595,7 +11261,7 @@ "_string": "Список всех аварий", "_horizontalAlign": 1, "_verticalAlign": 1, - "_actualFontSize": 26.881944444444443, + "_actualFontSize": 25.380468750000002, "_fontSize": 14, "_fontFamily": "Arial", "_lineHeight": 16, @@ -11643,7 +11309,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 308 + "__id__": 298 }, "_enabled": true, "__prefab": null, @@ -11665,7 +11331,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 308 + "__id__": 298 }, "_enabled": true, "__prefab": null, @@ -11704,13 +11370,13 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 304 + "__id__": 294 }, "_children": [], "_active": true, "_components": [ { - "__id__": 332 + "__id__": 322 } ], "_prefab": null, @@ -11749,7 +11415,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 331 + "__id__": 321 }, "_enabled": true, "__prefab": null, @@ -11768,16 +11434,16 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 304 + "__id__": 294 }, "_children": [], "_active": true, "_components": [ { - "__id__": 334 + "__id__": 324 }, { - "__id__": 335 + "__id__": 325 } ], "_prefab": null, @@ -11816,7 +11482,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 333 + "__id__": 323 }, "_enabled": true, "__prefab": null, @@ -11838,15 +11504,15 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 333 + "__id__": 323 }, "_enabled": true, "__prefab": null, "errorListNode": { - "__id__": 308 + "__id__": 298 }, "alertSound": { - "__id__": 332 + "__id__": 322 }, "_id": "04STMQ5PlDB5K9Q+T+Nc5I" }, @@ -11856,26 +11522,26 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 304 + "__id__": 294 }, "_children": [ { - "__id__": 337 + "__id__": 327 }, { - "__id__": 343 + "__id__": 333 } ], "_active": true, "_components": [ { - "__id__": 346 + "__id__": 336 }, { - "__id__": 347 + "__id__": 337 }, { - "__id__": 348 + "__id__": 338 } ], "_prefab": null, @@ -11914,22 +11580,22 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 336 + "__id__": 326 }, "_children": [], "_active": true, "_components": [ { - "__id__": 338 + "__id__": 328 }, { - "__id__": 339 + "__id__": 329 }, { - "__id__": 340 + "__id__": 330 }, { - "__id__": 342 + "__id__": 332 } ], "_prefab": null, @@ -11968,7 +11634,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 337 + "__id__": 327 }, "_enabled": true, "__prefab": null, @@ -11990,7 +11656,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 337 + "__id__": 327 }, "_enabled": true, "__prefab": null, @@ -12026,13 +11692,13 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 337 + "__id__": 327 }, "_enabled": true, "__prefab": null, "clickEvents": [ { - "__id__": 341 + "__id__": 331 } ], "_interactable": true, @@ -12072,14 +11738,14 @@ "_duration": 0.1, "_zoomScale": 1.2, "_target": { - "__id__": 337 + "__id__": 327 }, "_id": "fcEudJINdBn5ntwulikXUd" }, { "__type__": "cc.ClickEvent", "target": { - "__id__": 337 + "__id__": 327 }, "component": "", "_componentId": "c8c51tyHOdF9qPPEv9e5w6n", @@ -12092,12 +11758,12 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 337 + "__id__": 327 }, "_enabled": true, "__prefab": null, "equipmentList": { - "__id__": 308 + "__id__": 298 }, "viewCtrl": null, "_id": "b38+pWE99Jwa42bB1nkRDy" @@ -12108,16 +11774,16 @@ "_objFlags": 512, "__editorExtras__": {}, "_parent": { - "__id__": 336 + "__id__": 326 }, "_children": [], "_active": true, "_components": [ { - "__id__": 344 + "__id__": 334 }, { - "__id__": 345 + "__id__": 335 } ], "_prefab": null, @@ -12156,7 +11822,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 343 + "__id__": 333 }, "_enabled": false, "__prefab": null, @@ -12178,7 +11844,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 343 + "__id__": 333 }, "_enabled": true, "__prefab": null, @@ -12195,7 +11861,7 @@ "_string": "button", "_horizontalAlign": 1, "_verticalAlign": 1, - "_actualFontSize": 38.40277777777778, + "_actualFontSize": 36.2578125, "_fontSize": 20, "_fontFamily": "Arial", "_lineHeight": 40, @@ -12243,7 +11909,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 336 + "__id__": 326 }, "_enabled": true, "__prefab": null, @@ -12265,7 +11931,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 336 + "__id__": 326 }, "_enabled": true, "__prefab": null, @@ -12304,24 +11970,436 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 336 + "__id__": 326 }, "_enabled": true, "__prefab": null, "sprite": { - "__id__": 347 + "__id__": 337 }, "button": { - "__id__": 340 + "__id__": 330 }, "label": { - "__id__": 345 + "__id__": 335 }, "equipmentList": { - "__id__": 308 + "__id__": 298 }, "_id": "90IF/m9cFLm7ap95uWlPdy" }, + { + "__type__": "cc.Node", + "_name": "ErrorComponentsAnimation", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 294 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 340 + }, + { + "__id__": 341 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 312.424, + "y": 673.6949999999999, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1.588, + "y": 0.986, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "7fuML+KjpEsZcS7drPF7ky" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 339 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 75, + "height": 36 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "0aeJPdPa1IHIVVRWivb+f/" + }, + { + "__type__": "41a9dZz2mVOFoYwOsk9H98q", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 339 + }, + "_enabled": true, + "__prefab": null, + "equipmentList": { + "__id__": 203 + }, + "extraButton": { + "__id__": 275 + }, + "offsetX": 300, + "animationDuration": 0.3, + "_id": "d4B3mWD2VOiqIdr4WLZafw" + }, + { + "__type__": "cc.Node", + "_name": "ReturnCameraManager", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 182 + }, + "_children": [ + { + "__id__": 343 + } + ], + "_active": true, + "_components": [ + { + "__id__": 350 + }, + { + "__id__": 351 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": -613.25, + "y": -313.554, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "14iBUn67pBQIBrgs6gAkto" + }, + { + "__type__": "cc.Node", + "_name": "ReturnCameraButton", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 342 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 344 + }, + { + "__id__": 345 + }, + { + "__id__": 346 + }, + { + "__id__": 349 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "f5SRiOyCJJTbFw/cS/m30x" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 343 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 40, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "abePSkwbVKmboFEQBsdioC" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 343 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "a69a42c0-5153-4727-a259-46e20a71889f@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "b5uvhHMRVJl5PxIdehjOin" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 343 + }, + "_enabled": true, + "__prefab": null, + "clickEvents": [ + { + "__id__": 347 + }, + { + "__id__": 348 + } + ], + "_interactable": true, + "_transition": 2, + "_normalColor": { + "__type__": "cc.Color", + "r": 214, + "g": 214, + "b": 214, + "a": 255 + }, + "_hoverColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_pressedColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_normalSprite": { + "__uuid__": "a69a42c0-5153-4727-a259-46e20a71889f@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_hoverSprite": { + "__uuid__": "abe4c801-ca4a-4f3a-aafc-ca985258544d@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_pressedSprite": { + "__uuid__": "5de15a5b-39ad-47de-b9f6-247a4f379169@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_disabledSprite": { + "__uuid__": "a69a42c0-5153-4727-a259-46e20a71889f@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_duration": 0.1, + "_zoomScale": 1.2, + "_target": { + "__id__": 343 + }, + "_id": "b0qrCca/9OLZnSLlYjdPgL" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 343 + }, + "component": "", + "_componentId": "f9840lS54pAqo74KWdHx4Ej", + "handler": "resetPlayerTransform", + "customEventData": "" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 342 + }, + "component": "", + "_componentId": "710e0lYsxlDaazRa54bbTix", + "handler": "hideButton", + "customEventData": "" + }, + { + "__type__": "f9840lS54pAqo74KWdHx4Ej", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 343 + }, + "_enabled": true, + "__prefab": null, + "player": { + "__id__": 5 + }, + "_id": "26T8VtZcpOwqWPKMEgwJjI" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 342 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 40, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "41B+zSM/lCoYgEPKOb1px4" + }, + { + "__type__": "710e0lYsxlDaazRa54bbTix", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 342 + }, + "_enabled": true, + "__prefab": null, + "returnCameraButton": { + "__id__": 343 + }, + "character": { + "__id__": 5 + }, + "returnDuration": 0.5, + "hideDuration": 0.2, + "hidePos": { + "__type__": "cc.Vec3", + "x": 0, + "y": -70, + "z": 0 + }, + "moveThreshold": 1, + "_id": "35tp4Hz35AUZQZag5OD4Tr" + }, { "__type__": "cc.UITransform", "_name": "", @@ -12402,7 +12480,7 @@ "_active": true, "_components": [ { - "__id__": 353 + "__id__": 356 } ], "_prefab": null, @@ -12441,7 +12519,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 352 + "__id__": 355 }, "_enabled": true, "__prefab": null, @@ -12470,7 +12548,7 @@ "_active": true, "_components": [ { - "__id__": 355 + "__id__": 358 } ], "_prefab": null, @@ -12509,7 +12587,7 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 354 + "__id__": 357 }, "_enabled": true, "__prefab": null, @@ -12568,29 +12646,29 @@ { "__type__": "cc.SceneGlobals", "ambient": { - "__id__": 359 - }, - "shadows": { - "__id__": 360 - }, - "_skybox": { - "__id__": 361 - }, - "fog": { "__id__": 362 }, - "octree": { + "shadows": { "__id__": 363 }, - "skin": { + "_skybox": { "__id__": 364 }, - "lightProbeInfo": { + "fog": { "__id__": 365 }, - "postSettings": { + "octree": { "__id__": 366 }, + "skin": { + "__id__": 367 + }, + "lightProbeInfo": { + "__id__": 368 + }, + "postSettings": { + "__id__": 369 + }, "bakedWithStationaryMainLight": false, "bakedWithHighpLightmap": false }, diff --git a/assets/Scripts/FirstPersonController.ts b/assets/Scripts/FirstPersonController.ts index e8dfa9f..9b3a1da 100644 --- a/assets/Scripts/FirstPersonController.ts +++ b/assets/Scripts/FirstPersonController.ts @@ -3,18 +3,14 @@ const { ccclass, property } = _decorator; @ccclass('FirstPersonController') export class FirstPersonController extends Component { - // Если камера находится как дочерняя нода player, можно её оставить для визуального представления, - // но мы не будем отдельно управлять её вращением – вращение задаётся на player. @property({ type: Node }) public camera: Node | null = null; - // Скорости движения и поворота @property public moveSpeed: number = 5; @property public lookSpeed: number = 0.1; - // Параметры регулировки скорости (колёсиком мыши) @property public speedStep: number = 1; @property @@ -22,15 +18,18 @@ export class FirstPersonController extends Component { @property public maxSpeed: number = 20; - // Вектор движения, обновляемый по нажатию клавиш + // Вектор направления движения private _moveDirection: Vec3 = new Vec3(); - // Храним текущие углы поворота (в градусах) – полное вращение player + // Храним текущие углы поворота (в градусах) private _eulerAngles: Vec3 = new Vec3(); - // Флаг, что зажата левая кнопка мыши + // Флаг нажатия левой кнопки мыши private _isLeftMousePressed: boolean = false; + // Для эмитации события движения – запоминаем последнее положение + private _lastEmittedPosition: Vec3 = new Vec3(); + onLoad() { input.on(Input.EventType.KEY_DOWN, this._onKeyDown, this); input.on(Input.EventType.KEY_UP, this._onKeyUp, this); @@ -41,6 +40,8 @@ export class FirstPersonController extends Component { // Инициализируем углы текущей ориентацией ноды player this._eulerAngles = this.node.eulerAngles.clone(); + // Сохраняем начальное положение для эмитации события "moved" + this._lastEmittedPosition = this.node.getPosition().clone(); } onDestroy() { @@ -52,7 +53,6 @@ export class FirstPersonController extends Component { input.off(Input.EventType.MOUSE_WHEEL, this._onMouseWheel, this); } - // Обработка нажатий клавиш – WASD (а также Q/E для движения по оси Y) private _onKeyDown(event: EventKeyboard) { switch (event.keyCode) { case KeyCode.KEY_W: @@ -93,9 +93,8 @@ export class FirstPersonController extends Component { } } - // Обработка мыши для вращения private _onMouseDown(event: EventMouse) { - if (event.getButton() === 0) { // Левая кнопка + if (event.getButton() === 0) { this._isLeftMousePressed = true; } } @@ -108,26 +107,24 @@ export class FirstPersonController extends Component { private _onMouseMove(event: EventMouse) { if (this._isLeftMousePressed) { - // Обновляем углы – горизонтальный (yaw) и вертикальный (pitch) + // Обновляем углы поворота: горизонтальный (yaw) и вертикальный (pitch) this._eulerAngles.y -= event.movementX * this.lookSpeed; this._eulerAngles.x -= event.movementY * this.lookSpeed; // Ограничиваем pitch, чтобы не перевернуться this._eulerAngles.x = Math.max(-89, Math.min(89, this._eulerAngles.x)); - // Применяем полное вращение к ноде player + // Применяем поворот к ноде player const newQuat = new Quat(); Quat.fromEuler(newQuat, this._eulerAngles.x, this._eulerAngles.y, 0); this.node.setRotation(newQuat); - // Если камера является дочерней нодой player и вы хотите, чтобы она точно следовала за player, - // можно сбросить её локальное вращение (или задать свой offset, если нужно) + // Если камера дочерняя нода, сбрасываем её локальное вращение if (this.camera) { this.camera.setRotation(Quat.IDENTITY); } } } - // Обработка колесика мыши для изменения скорости движения private _onMouseWheel(event: EventMouse) { if (event.getScrollY() > 0) { this.moveSpeed = Math.min(this.moveSpeed + this.speedStep, this.maxSpeed); @@ -138,18 +135,24 @@ export class FirstPersonController extends Component { } update(deltaTime: number) { - // Вычисляем направление движения, основываясь на полной (world) ориентации ноды player - // forward и right будут включать и наклон, если он задан + // Вычисляем направление движения с учётом ориентации игрока const forward = Vec3.transformQuat(new Vec3(), Vec3.FORWARD, this.node.worldRotation); const right = Vec3.transformQuat(new Vec3(), Vec3.RIGHT, this.node.worldRotation); const move = new Vec3(); Vec3.scaleAndAdd(move, move, forward, this._moveDirection.z * this.moveSpeed * deltaTime); - Vec3.scaleAndAdd(move, move, right, this._moveDirection.x * this.moveSpeed * deltaTime); - // Для вертикального перемещения (Q/E) используем мировую ось вверх + Vec3.scaleAndAdd(move, move, right, this._moveDirection.x * this.moveSpeed * deltaTime); Vec3.scaleAndAdd(move, move, Vec3.UP, this._moveDirection.y * this.moveSpeed * deltaTime); - // Перемещаем player в мировом пространстве, чтобы направление движения соответствовало ориентации + // Перемещаем игрока в мировом пространстве this.node.translate(move, NodeSpace.WORLD); + + // После перемещения проверяем, изменилась ли позиция существенно, чтобы эмитировать событие "moved" + const currentPos = this.node.getPosition(); + if (Vec3.distance(currentPos, this._lastEmittedPosition) > 0.1) { + this.node.emit('moved'); + // Обновляем последнее сохранённое положение + this._lastEmittedPosition = currentPos.clone(); + } } } diff --git a/assets/Scripts/ui/ReturnCameraButtonController.ts b/assets/Scripts/ui/ReturnCameraButtonController.ts new file mode 100644 index 0000000..7704251 --- /dev/null +++ b/assets/Scripts/ui/ReturnCameraButtonController.ts @@ -0,0 +1,77 @@ +import { _decorator, Component, Node, tween, Vec3 } from 'cc'; +const { ccclass, property } = _decorator; + +@ccclass('ReturnCameraButtonController') +export class ReturnCameraButtonController extends Component { + // Ссылка на кнопку, которую нужно показывать/скрывать + @property(Node) + public returnCameraButton: Node = null!; + + // Ссылка на ноду персонажа + @property(Node) + public character: Node = null!; + + // Длительность анимации возврата кнопки на исходную позицию + @property + public returnDuration: number = 0.3; + + // Длительность анимации скрытия кнопки вниз за экран + @property + public hideDuration: number = 0.3; + + // Позиция, куда кнопка скрывается (например, ниже экрана) + @property + public hidePos: Vec3 = new Vec3(0, -100, 0); + + // Порог смещения персонажа (в единицах пространства), при котором кнопка появляется + @property + public moveThreshold: number = 1; + + // Исходная позиция персонажа + private originalCharacterPos: Vec3 = new Vec3(); + // Исходная позиция кнопки + private originalButtonPos: Vec3 = new Vec3(); + + start() { + // Сохраняем исходную позицию кнопки, как её позицию при отображении (например, в инспекторе) + this.originalButtonPos = this.returnCameraButton.getPosition().clone(); + // Сразу смещаем кнопку в скрытое положение + this.returnCameraButton.setPosition(this.hidePos); + + // Сохраняем исходную позицию персонажа + this.originalCharacterPos = this.character.getPosition().clone(); + + // Подписываемся на событие "moved", эмитируемое персонажем при его движении + this.character.on('moved', this.onCharacterMoved, this); + } + + + // Обработчик события движения персонажа + private onCharacterMoved() { + const currentPos = this.character.getPosition(); + const distance = currentPos.clone().subtract(this.originalCharacterPos).length(); + if (distance >= this.moveThreshold) { + // Если персонаж сместился достаточно, запускаем анимацию показа кнопки + this.resetPosition(); + } + } + + // Метод, который возвращает кнопку в исходное положение с анимацией + public resetPosition() { + // Если кнопка деактивирована, активируем её + this.returnCameraButton.active = true; + tween(this.returnCameraButton) + .to(this.returnDuration, { position: this.originalButtonPos }) + .start(); + } + + // Метод для анимации скрытия кнопки вниз за экран и её деактивации + public hideButton() { + tween(this.returnCameraButton) + .to(this.hideDuration, { position: this.hidePos }) + .call(() => { + this.returnCameraButton.active = false; + }) + .start(); + } +} diff --git a/assets/Scripts/ui/ReturnCameraButtonController.ts.meta b/assets/Scripts/ui/ReturnCameraButtonController.ts.meta new file mode 100644 index 0000000..7e9ba04 --- /dev/null +++ b/assets/Scripts/ui/ReturnCameraButtonController.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.24", + "importer": "typescript", + "imported": true, + "uuid": "710e0958-b319-4369-acd1-6b9e1b6d38b1", + "files": [], + "subMetas": {}, + "userData": {} +}