summaryrefslogtreecommitdiff
path: root/Library/Artifacts/2b/2bd177cef454da4a9b4611d6708d217e
blob: 17997421c214456bf7a8ffceef52ed6f65504f82 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 4d e4 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......M.............2019.3.6f1..
0020 ff ff ff 01 02 00 00 00 0b 04 00 00 00 ff ff 66 9a 86 21 eb 14 35 98 39 dd 34 1d 51 0e c1 f3 42 ...............f..!..5.9.4.Q...B
0040 00 00 00 ed 00 00 00 02 00 00 00 00 00 00 00 37 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 ...............7................
0060 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 ................................
0080 00 00 00 00 00 00 00 01 00 01 00 0d 00 00 00 45 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 ...............E................
00a0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 ...............#................
00c0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 ...............,................
00e0 00 00 00 00 00 00 00 01 00 01 00 35 00 00 00 61 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 ...........5...a................
0100 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 ...............#................
0120 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 ...............,................
0140 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 ...............r................
0160 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 ...............#................
0180 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 ...............,................
01a0 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 ...........H....................
01c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 ...........1...1............@...
01e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 ................................
0200 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 ...........Q...j................
0220 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 4a 00 00 00 ff ff ff ff 0f 00 00 00 00 c0 00 00 00 ...............J................
0240 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 10 00 00 00 00 80 00 00 00 ...........1...1................
0260 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 11 00 00 00 00 00 00 00 00 ................................
0280 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 12 00 00 00 00 80 00 00 00 ...............j................
02a0 00 00 00 00 00 00 00 01 00 04 00 5c 00 00 00 9b 00 00 80 ff ff ff ff 13 00 00 00 00 80 00 00 00 ...........\....................
02c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 72 00 00 00 ff ff ff ff 14 00 00 00 00 80 00 00 00 ...........H...r................
02e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 15 00 00 00 01 40 00 00 00 ...........1...1............@...
0300 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 16 00 00 00 01 00 00 00 00 ................................
0320 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 17 00 00 00 01 00 00 00 00 ...........Q...j................
0340 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 77 00 00 00 ff ff ff ff 18 00 00 00 00 80 00 00 00 ...........H...w................
0360 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 19 00 00 00 01 40 00 00 00 ...........1...1............@...
0380 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1a 00 00 00 01 00 00 00 00 ................................
03a0 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1b 00 00 00 01 00 00 00 00 ...........Q...j................
03c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 80 00 00 00 ff ff ff ff 1c 00 00 00 00 80 00 00 00 ...........H....................
03e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 1d 00 00 00 01 40 00 00 00 ...........1...1............@...
0400 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1e 00 00 00 01 00 00 00 00 ................................
0420 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1f 00 00 00 01 00 00 00 00 ...........Q...j................
0440 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 20 00 00 00 00 00 00 00 00 ...........y....................
0460 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 21 00 00 00 01 00 80 00 00 ...............#.......!........
0480 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 22 00 00 00 01 00 80 00 00 ...............,......."........
04a0 00 00 00 00 00 00 00 01 00 01 00 11 03 00 80 85 00 00 00 ff ff ff ff 23 00 00 00 01 40 08 00 00 .......................#....@...
04c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 24 00 00 00 01 00 08 00 00 ...........1...1.......$........
04e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 25 00 00 00 01 00 08 00 00 .......................%........
0500 00 00 00 00 00 00 00 01 00 03 00 2e 03 00 80 6a 00 00 80 08 00 00 00 26 00 00 00 01 00 08 00 00 ...............j.......&........
0520 00 00 00 00 00 00 00 01 00 01 00 d5 03 00 80 93 00 00 00 ff ff ff ff 27 00 00 00 00 80 00 00 00 .......................'........
0540 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 28 00 00 00 00 c0 00 00 00 ...........1...1.......(........
0560 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 29 00 00 00 00 00 00 00 00 .......................)........
0580 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 2a 00 00 00 00 80 00 00 00 ...............j.......*........
05a0 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b 00 00 80 ff ff ff ff 2b 00 00 00 00 80 00 00 00 ...........H...........+........
05c0 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 00 00 80 ff ff ff ff 2c 00 00 00 01 40 00 00 00 ...........1...1.......,....@...
05e0 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b 03 00 80 04 00 00 00 2d 00 00 00 01 00 00 00 00 .......................-........
0600 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a 00 00 80 01 00 00 00 2e 00 00 00 01 00 00 00 00 ...........Q...j................
0620 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 2f 00 00 00 00 00 00 00 00 ...........y.........../........
0640 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 30 00 00 00 01 00 80 00 00 ...............#.......0........
0660 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 31 00 00 00 01 00 80 00 00 ...............,.......1........
0680 00 00 00 00 00 00 00 01 00 01 00 20 03 00 80 a7 00 00 00 02 00 00 00 32 00 00 00 00 40 00 00 00 .......................2....@...
06a0 00 00 00 00 00 00 00 01 00 01 00 be 02 00 80 b6 00 00 00 0c 00 00 00 33 00 00 00 00 40 00 00 00 .......................3....@...
06c0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 34 00 00 00 01 00 80 00 00 ...............#.......4........
06e0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 35 00 00 00 01 00 80 00 00 ...............,.......5........
0700 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 bb 00 00 00 ff ff ff ff 36 00 00 00 01 80 00 00 00 ...........H...........6........
0720 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 37 00 00 00 01 40 00 00 00 ...........1...1.......7....@...
0740 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 38 00 00 00 01 00 00 00 00 .......................8........
0760 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 39 00 00 00 01 00 00 00 00 ...........Q...j.......9........
0780 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 c6 00 00 00 ff ff ff ff 3a 00 00 00 01 80 00 00 00 ...........H...........:........
07a0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3b 00 00 00 01 40 00 00 00 ...........1...1.......;....@...
07c0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 3c 00 00 00 01 00 00 00 00 .......................<........
07e0 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 3d 00 00 00 01 00 00 00 00 ...........Q...j.......=........
0800 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 d8 00 00 00 ff ff ff ff 3e 00 00 00 01 80 00 00 00 ...........H...........>........
0820 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3f 00 00 00 01 40 00 00 00 ...........1...1.......?....@...
0840 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 40 00 00 00 01 00 00 00 00 .......................@........
0860 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 41 00 00 00 01 00 00 00 00 ...........Q...j.......A........
0880 00 00 00 00 00 00 00 4d 6f 6e 6f 49 6d 70 6f 72 74 65 72 00 50 50 74 72 3c 45 64 69 74 6f 72 45 .......MonoImporter.PPtr<EditorE
08a0 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 50 74 72 xtension>.m_FileID.m_PathID.PPtr
08c0 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 45 78 74 65 72 6e 61 6c 4f 62 6a 65 63 <PrefabInstance>.m_ExternalObjec
08e0 74 73 00 53 6f 75 72 63 65 41 73 73 65 74 49 64 65 6e 74 69 66 69 65 72 00 74 79 70 65 00 61 73 ts.SourceAssetIdentifier.type.as
0900 73 65 6d 62 6c 79 00 6e 61 6d 65 00 6d 5f 55 73 65 64 46 69 6c 65 49 44 73 00 6d 5f 44 65 66 61 sembly.name.m_UsedFileIDs.m_Defa
0920 75 6c 74 52 65 66 65 72 65 6e 63 65 73 00 65 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 69 63 6f ultReferences.executionOrder.ico
0940 6e 00 6d 5f 55 73 65 72 44 61 74 61 00 6d 5f 41 73 73 65 74 42 75 6e 64 6c 65 4e 61 6d 65 00 6d n.m_UserData.m_AssetBundleName.m
0960 5f 41 73 73 65 74 42 75 6e 64 6c 65 56 61 72 69 61 6e 74 00 00 00 00 00 73 00 00 00 00 ff ff a3 _AssetBundleVariant.....s.......
0980 47 f1 d7 dc 8f 5a 35 36 a0 3a 21 40 69 c1 4a 2a 00 00 00 81 00 00 00 05 00 00 00 15 01 00 80 37 G....Z56.:!@i.J*...............7
09a0 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 ................................
09c0 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00 45 ...............................E
09e0 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a00 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a20 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 28 00 00 00 61 ...........................(...a
0a40 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a60 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a80 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 ...............................r
0aa0 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0ac0 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0ae0 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab ...........................H....
0b00 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0b20 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0b40 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0b60 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ea ...........................H....
0b80 01 00 80 ff ff ff ff 0f 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0ba0 00 00 80 ff ff ff ff 10 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0bc0 03 00 80 04 00 00 00 11 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0be0 00 00 80 01 00 00 00 12 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 3d ...............................=
0c00 00 00 00 ff ff ff ff 13 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0c20 00 00 80 ff ff ff ff 14 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ................................
0c40 03 00 80 04 00 00 00 15 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a ...............................j
0c60 00 00 80 ff ff ff ff 16 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b ...........................H....
0c80 00 00 80 ff ff ff ff 17 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 ...........................1...1
0ca0 00 00 80 ff ff ff ff 18 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b ............@...................
0cc0 03 00 80 04 00 00 00 19 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a ...........................Q...j
0ce0 00 00 80 01 00 00 00 1a 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a ...........................y....
0d00 03 00 80 0c 00 00 00 1b 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 16 ................................
0d20 00 00 00 04 00 00 00 1c 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 1f ................................
0d40 00 00 00 08 00 00 00 1d 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 79 02 00 80 51 ...........................y...Q
0d60 00 00 00 0c 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0d80 00 00 00 04 00 00 00 1f 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0da0 00 00 00 08 00 00 00 20 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 de 00 00 80 58 ...............................X
0dc0 00 00 00 04 00 00 00 21 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 69 .......!...................H...i
0de0 00 00 00 ff ff ff ff 22 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ......."...................1...1
0e00 00 00 80 ff ff ff ff 23 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......#....@...................
0e20 03 00 80 04 00 00 00 24 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......$...................Q...j
0e40 00 00 80 01 00 00 00 25 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 75 .......%...................H...u
0e60 00 00 00 ff ff ff ff 26 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 .......&...................1...1
0e80 00 00 80 ff ff ff ff 27 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......'....@...................
0ea0 03 00 80 04 00 00 00 28 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......(...................Q...j
0ec0 00 00 80 01 00 00 00 29 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 50 50 74 72 3c 45 64 69 74 .......)...............PPtr<Edit
0ee0 6f 72 45 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 orExtension>.m_FileID.m_PathID.P
0f00 50 74 72 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 44 65 66 61 75 6c 74 52 65 66 Ptr<PrefabInstance>.m_DefaultRef
0f20 65 72 65 6e 63 65 73 00 6d 5f 49 63 6f 6e 00 6d 5f 45 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 erences.m_Icon.m_ExecutionOrder.
0f40 6d 5f 43 6c 61 73 73 4e 61 6d 65 00 6d 5f 4e 61 6d 65 73 70 61 63 65 00 00 00 00 00 02 00 00 00 m_ClassName.m_Namespace.........
0f60 03 00 00 00 00 00 00 00 00 00 00 00 5c 00 00 00 00 00 00 00 e0 79 af 00 00 00 00 00 60 00 00 00 ............\........y......`...
0f80 84 3d 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .=..............................
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 e0 79 af 00 00 00 00 00 00 00 00 00 .....................y..........
1040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1080 00 00 00 00 00 00 00 00 12 00 00 00 50 6f 69 6e 74 65 72 49 6e 70 75 74 4d 6f 64 75 6c 65 00 00 ............PointerInputModule..
10a0 f6 3c 00 00 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e .<..using.System.Collections.Gen
10c0 65 72 69 63 3b 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 54 65 78 74 3b 0a 75 73 69 6e 67 20 55 eric;.using.System.Text;.using.U
10e0 6e 69 74 79 45 6e 67 69 6e 65 2e 55 49 3b 0a 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 45 nityEngine.UI;..namespace.UnityE
1100 6e 67 69 6e 65 2e 45 76 65 6e 74 53 79 73 74 65 6d 73 0a 7b 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 ngine.EventSystems.{.....///.<su
1120 6d 6d 61 72 79 3e 0a 20 20 20 20 2f 2f 2f 20 41 20 42 61 73 65 49 6e 70 75 74 4d 6f 64 75 6c 65 mmary>.....///.A.BaseInputModule
1140 20 66 6f 72 20 70 6f 69 6e 74 65 72 20 69 6e 70 75 74 2e 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 .for.pointer.input......///.</su
1160 6d 6d 61 72 79 3e 0a 20 20 20 20 70 75 62 6c 69 63 20 61 62 73 74 72 61 63 74 20 63 6c 61 73 73 mmary>.....public.abstract.class
1180 20 50 6f 69 6e 74 65 72 49 6e 70 75 74 4d 6f 64 75 6c 65 20 3a 20 42 61 73 65 49 6e 70 75 74 4d .PointerInputModule.:.BaseInputM
11a0 6f 64 75 6c 65 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 odule.....{.........///.<summary
11c0 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 64 20 6f 66 20 74 68 65 20 63 61 63 68 65 64 20 6c >.........///.Id.of.the.cached.l
11e0 65 66 74 20 6d 6f 75 73 65 20 70 6f 69 6e 74 65 72 20 65 76 65 6e 74 2e 0a 20 20 20 20 20 20 20 eft.mouse.pointer.event.........
1200 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 63 .///.</summary>.........public.c
1220 6f 6e 73 74 20 69 6e 74 20 6b 4d 6f 75 73 65 4c 65 66 74 49 64 20 3d 20 2d 31 3b 0a 0a 20 20 20 onst.int.kMouseLeftId.=.-1;.....
1240 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 .....///.<summary>.........///.I
1260 64 20 6f 66 20 74 68 65 20 63 61 63 68 65 64 20 72 69 67 68 74 20 6d 6f 75 73 65 20 70 6f 69 6e d.of.the.cached.right.mouse.poin
1280 74 65 72 20 65 76 65 6e 74 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 ter.event..........///.</summary
12a0 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 63 6f 6e 73 74 20 69 6e 74 20 6b 4d 6f 75 73 >.........public.const.int.kMous
12c0 65 52 69 67 68 74 49 64 20 3d 20 2d 32 3b 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d eRightId.=.-2;..........///.<sum
12e0 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 64 20 6f 66 20 74 68 65 20 63 61 63 68 mary>.........///.Id.of.the.cach
1300 65 64 20 6d 69 64 64 6c 65 20 6d 6f 75 73 65 20 70 6f 69 6e 74 65 72 20 65 76 65 6e 74 2e 0a 20 ed.middle.mouse.pointer.event...
1320 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 .......///.</summary>.........pu
1340 62 6c 69 63 20 63 6f 6e 73 74 20 69 6e 74 20 6b 4d 6f 75 73 65 4d 69 64 64 6c 65 49 64 20 3d 20 blic.const.int.kMouseMiddleId.=.
1360 2d 33 3b 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 -3;..........///.<summary>......
1380 20 20 20 2f 2f 2f 20 54 6f 75 63 68 20 69 64 20 66 6f 72 20 77 68 65 6e 20 73 69 6d 75 6c 61 74 ...///.Touch.id.for.when.simulat
13a0 69 6e 67 20 74 6f 75 63 68 65 73 20 6f 6e 20 61 20 6e 6f 6e 20 74 6f 75 63 68 20 64 65 76 69 63 ing.touches.on.a.non.touch.devic
13c0 65 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 e..........///.</summary>.......
13e0 20 20 70 75 62 6c 69 63 20 63 6f 6e 73 74 20 69 6e 74 20 6b 46 61 6b 65 54 6f 75 63 68 65 73 49 ..public.const.int.kFakeTouchesI
1400 64 20 3d 20 2d 34 3b 0a 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 44 69 63 74 69 d.=.-4;..........protected.Dicti
1420 6f 6e 61 72 79 3c 69 6e 74 2c 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 3e 20 6d 5f 50 onary<int,.PointerEventData>.m_P
1440 6f 69 6e 74 65 72 44 61 74 61 20 3d 20 6e 65 77 20 44 69 63 74 69 6f 6e 61 72 79 3c 69 6e 74 2c ointerData.=.new.Dictionary<int,
1460 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 3e 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 2f .PointerEventData>();........../
1480 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 53 65 61 72 63 68 20 //.<summary>.........///.Search.
14a0 74 68 65 20 63 61 63 68 65 20 66 6f 72 20 63 75 72 72 65 6e 74 6c 79 20 61 63 74 69 76 65 20 70 the.cache.for.currently.active.p
14c0 6f 69 6e 74 65 72 73 2c 20 72 65 74 75 72 6e 20 74 72 75 65 20 69 66 20 66 6f 75 6e 64 2e 0a 20 ointers,.return.true.if.found...
14e0 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f .......///.</summary>.........//
1500 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 69 64 22 3e 54 6f 75 63 68 20 49 44 3c 2f 70 61 72 /.<param.name="id">Touch.ID</par
1520 61 6d 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 64 61 74 am>.........///.<param.name="dat
1540 61 22 3e 46 6f 75 6e 64 20 64 61 74 61 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 20 2f 2f a">Found.data</param>.........//
1560 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 63 72 65 61 74 65 22 3e 49 66 20 6e 6f 74 20 66 6f /.<param.name="create">If.not.fo
1580 75 6e 64 20 73 68 6f 75 6c 64 20 69 74 20 62 65 20 63 72 65 61 74 65 64 3c 2f 70 61 72 61 6d 3e und.should.it.be.created</param>
15a0 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 54 72 75 65 20 69 66 20 70 6f .........///.<returns>True.if.po
15c0 69 6e 74 65 72 20 69 73 20 66 6f 75 6e 64 2e 3c 2f 72 65 74 75 72 6e 73 3e 0a 20 20 20 20 20 20 inter.is.found.</returns>.......
15e0 20 20 70 72 6f 74 65 63 74 65 64 20 62 6f 6f 6c 20 47 65 74 50 6f 69 6e 74 65 72 44 61 74 61 28 ..protected.bool.GetPointerData(
1600 69 6e 74 20 69 64 2c 20 6f 75 74 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 20 64 61 74 int.id,.out.PointerEventData.dat
1620 61 2c 20 62 6f 6f 6c 20 63 72 65 61 74 65 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 a,.bool.create).........{.......
1640 20 20 20 20 20 20 69 66 20 28 21 6d 5f 50 6f 69 6e 74 65 72 44 61 74 61 2e 54 72 79 47 65 74 56 ......if.(!m_PointerData.TryGetV
1660 61 6c 75 65 28 69 64 2c 20 6f 75 74 20 64 61 74 61 29 20 26 26 20 63 72 65 61 74 65 29 0a 20 20 alue(id,.out.data).&&.create)...
1680 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 61 74 61 ..........{.................data
16a0 20 3d 20 6e 65 77 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 28 65 76 65 6e 74 53 79 73 .=.new.PointerEventData(eventSys
16c0 74 65 6d 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 tem).................{..........
16e0 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 49 64 20 3d 20 69 64 2c 0a 20 20 20 20 20 ...........pointerId.=.id,......
1700 20 20 20 20 20 20 20 20 20 20 20 7d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f ...........};.................m_
1720 50 6f 69 6e 74 65 72 44 61 74 61 2e 41 64 64 28 69 64 2c 20 64 61 74 61 29 3b 0a 20 20 20 20 20 PointerData.Add(id,.data);......
1740 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 ...........return.true;.........
1760 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0a ....}.............return.false;.
1780 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e ........}..........///.<summary>
17a0 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 52 65 6d 6f 76 65 20 74 68 65 20 50 6f 69 6e 74 65 72 45 .........///.Remove.the.PointerE
17c0 76 65 6e 74 44 61 74 61 20 66 72 6f 6d 20 74 68 65 20 63 61 63 68 65 2e 0a 20 20 20 20 20 20 20 ventData.from.the.cache.........
17e0 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 .///.</summary>.........protecte
1800 64 20 76 6f 69 64 20 52 65 6d 6f 76 65 50 6f 69 6e 74 65 72 44 61 74 61 28 50 6f 69 6e 74 65 72 d.void.RemovePointerData(Pointer
1820 45 76 65 6e 74 44 61 74 61 20 64 61 74 61 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 EventData.data).........{.......
1840 20 20 20 20 20 20 6d 5f 50 6f 69 6e 74 65 72 44 61 74 61 2e 52 65 6d 6f 76 65 28 64 61 74 61 2e ......m_PointerData.Remove(data.
1860 70 6f 69 6e 74 65 72 49 64 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f pointerId);.........}........../
1880 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 47 69 76 65 6e 20 61 //.<summary>.........///.Given.a
18a0 20 74 6f 75 63 68 20 70 6f 70 75 6c 61 74 65 20 74 68 65 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 .touch.populate.the.PointerEvent
18c0 44 61 74 61 20 61 6e 64 20 72 65 74 75 72 6e 20 69 66 20 77 65 20 61 72 65 20 70 72 65 73 73 65 Data.and.return.if.we.are.presse
18e0 64 20 6f 72 20 72 65 6c 65 61 73 65 64 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d d.or.released..........///.</sum
1900 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 69 mary>.........///.<param.name="i
1920 6e 70 75 74 22 3e 54 6f 75 63 68 20 62 65 69 6e 67 20 70 72 6f 63 65 73 73 65 64 3c 2f 70 61 72 nput">Touch.being.processed</par
1940 61 6d 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 70 72 65 am>.........///.<param.name="pre
1960 73 73 65 64 22 3e 41 72 65 20 77 65 20 70 72 65 73 73 65 64 20 74 68 69 73 20 66 72 61 6d 65 3c ssed">Are.we.pressed.this.frame<
1980 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d /param>.........///.<param.name=
19a0 22 72 65 6c 65 61 73 65 64 22 3e 41 72 65 20 77 65 20 72 65 6c 65 61 73 65 64 20 74 68 69 73 20 "released">Are.we.released.this.
19c0 66 72 61 6d 65 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 frame</param>.........///.<retur
19e0 6e 73 3e 3c 2f 72 65 74 75 72 6e 73 3e 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 ns></returns>.........protected.
1a00 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 20 47 65 74 54 6f 75 63 68 50 6f 69 6e 74 65 72 PointerEventData.GetTouchPointer
1a20 45 76 65 6e 74 44 61 74 61 28 54 6f 75 63 68 20 69 6e 70 75 74 2c 20 6f 75 74 20 62 6f 6f 6c 20 EventData(Touch.input,.out.bool.
1a40 70 72 65 73 73 65 64 2c 20 6f 75 74 20 62 6f 6f 6c 20 72 65 6c 65 61 73 65 64 29 0a 20 20 20 20 pressed,.out.bool.released).....
1a60 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 ....{.............PointerEventDa
1a80 74 61 20 70 6f 69 6e 74 65 72 44 61 74 61 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 ta.pointerData;.............var.
1aa0 63 72 65 61 74 65 64 20 3d 20 47 65 74 50 6f 69 6e 74 65 72 44 61 74 61 28 69 6e 70 75 74 2e 66 created.=.GetPointerData(input.f
1ac0 69 6e 67 65 72 49 64 2c 20 6f 75 74 20 70 6f 69 6e 74 65 72 44 61 74 61 2c 20 74 72 75 65 29 3b ingerId,.out.pointerData,.true);
1ae0 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 44 61 74 61 2e 52 65 73 65 74 28 ..............pointerData.Reset(
1b00 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 65 73 73 65 64 20 3d 20 63 72 65 61 74 65 );..............pressed.=.create
1b20 64 20 7c 7c 20 28 69 6e 70 75 74 2e 70 68 61 73 65 20 3d 3d 20 54 6f 75 63 68 50 68 61 73 65 2e d.||.(input.phase.==.TouchPhase.
1b40 42 65 67 61 6e 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 6c 65 61 73 65 64 20 3d 20 28 Began);.............released.=.(
1b60 69 6e 70 75 74 2e 70 68 61 73 65 20 3d 3d 20 54 6f 75 63 68 50 68 61 73 65 2e 43 61 6e 63 65 6c input.phase.==.TouchPhase.Cancel
1b80 65 64 29 20 7c 7c 20 28 69 6e 70 75 74 2e 70 68 61 73 65 20 3d 3d 20 54 6f 75 63 68 50 68 61 73 ed).||.(input.phase.==.TouchPhas
1ba0 65 2e 45 6e 64 65 64 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 72 65 61 74 e.Ended);..............if.(creat
1bc0 65 64 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 44 61 74 61 2e ed).................pointerData.
1be0 70 6f 73 69 74 69 6f 6e 20 3d 20 69 6e 70 75 74 2e 70 6f 73 69 74 69 6f 6e 3b 0a 0a 20 20 20 20 position.=.input.position;......
1c00 20 20 20 20 20 20 20 20 69 66 20 28 70 72 65 73 73 65 64 29 0a 20 20 20 20 20 20 20 20 20 20 20 ........if.(pressed)............
1c20 20 20 20 20 20 70 6f 69 6e 74 65 72 44 61 74 61 2e 64 65 6c 74 61 20 3d 20 56 65 63 74 6f 72 32 .....pointerData.delta.=.Vector2
1c40 2e 7a 65 72 6f 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0a 20 20 20 20 20 20 20 20 .zero;.............else.........
1c60 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 44 61 74 61 2e 64 65 6c 74 61 20 3d 20 69 6e 70 75 ........pointerData.delta.=.inpu
1c80 74 2e 70 6f 73 69 74 69 6f 6e 20 2d 20 70 6f 69 6e 74 65 72 44 61 74 61 2e 70 6f 73 69 74 69 6f t.position.-.pointerData.positio
1ca0 6e 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 44 61 74 61 2e 70 6f 73 69 n;..............pointerData.posi
1cc0 74 69 6f 6e 20 3d 20 69 6e 70 75 74 2e 70 6f 73 69 74 69 6f 6e 3b 0a 0a 20 20 20 20 20 20 20 20 tion.=.input.position;..........
1ce0 20 20 20 20 70 6f 69 6e 74 65 72 44 61 74 61 2e 62 75 74 74 6f 6e 20 3d 20 50 6f 69 6e 74 65 72 ....pointerData.button.=.Pointer
1d00 45 76 65 6e 74 44 61 74 61 2e 49 6e 70 75 74 42 75 74 74 6f 6e 2e 4c 65 66 74 3b 0a 0a 20 20 20 EventData.InputButton.Left;.....
1d20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 70 75 74 2e 70 68 61 73 65 20 3d 3d 20 54 6f 75 63 .........if.(input.phase.==.Touc
1d40 68 50 68 61 73 65 2e 43 61 6e 63 65 6c 65 64 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 hPhase.Canceled).............{..
1d60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 44 61 74 61 2e 70 6f 69 6e 74 ...............pointerData.point
1d80 65 72 43 75 72 72 65 6e 74 52 61 79 63 61 73 74 20 3d 20 6e 65 77 20 52 61 79 63 61 73 74 52 65 erCurrentRaycast.=.new.RaycastRe
1da0 73 75 6c 74 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 sult();.............}...........
1dc0 20 20 65 6c 73 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 ..else.............{............
1de0 20 20 20 20 20 65 76 65 6e 74 53 79 73 74 65 6d 2e 52 61 79 63 61 73 74 41 6c 6c 28 70 6f 69 6e .....eventSystem.RaycastAll(poin
1e00 74 65 72 44 61 74 61 2c 20 6d 5f 52 61 79 63 61 73 74 52 65 73 75 6c 74 43 61 63 68 65 29 3b 0a terData,.m_RaycastResultCache);.
1e20 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 61 79 63 61 73 74 20 3d 20 46 .................var.raycast.=.F
1e40 69 6e 64 46 69 72 73 74 52 61 79 63 61 73 74 28 6d 5f 52 61 79 63 61 73 74 52 65 73 75 6c 74 43 indFirstRaycast(m_RaycastResultC
1e60 61 63 68 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 44 61 ache);.................pointerDa
1e80 74 61 2e 70 6f 69 6e 74 65 72 43 75 72 72 65 6e 74 52 61 79 63 61 73 74 20 3d 20 72 61 79 63 61 ta.pointerCurrentRaycast.=.rayca
1ea0 73 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 52 61 79 63 61 73 74 52 65 73 st;.................m_RaycastRes
1ec0 75 6c 74 43 61 63 68 65 2e 43 6c 65 61 72 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a ultCache.Clear();.............}.
1ee0 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 70 6f 69 6e 74 65 72 44 61 74 61 3b 0a ............return.pointerData;.
1f00 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e ........}..........///.<summary>
1f20 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 6f 70 79 20 6f 6e 65 20 50 6f 69 6e 74 65 72 45 76 65 .........///.Copy.one.PointerEve
1f40 6e 74 44 61 74 61 20 74 6f 20 61 6e 6f 74 68 65 72 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c ntData.to.another..........///.<
1f60 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 6f 69 64 /summary>.........protected.void
1f80 20 43 6f 70 79 46 72 6f 6d 54 6f 28 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 20 40 66 72 .CopyFromTo(PointerEventData.@fr
1fa0 6f 6d 2c 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 20 40 74 6f 29 0a 20 20 20 20 20 20 om,.PointerEventData.@to).......
1fc0 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 40 74 6f 2e 70 6f 73 69 74 69 6f 6e 20 3d 20 40 ..{.............@to.position.=.@
1fe0 66 72 6f 6d 2e 70 6f 73 69 74 69 6f 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 40 74 6f 2e 64 from.position;.............@to.d
2000 65 6c 74 61 20 3d 20 40 66 72 6f 6d 2e 64 65 6c 74 61 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 elta.=.@from.delta;.............
2020 40 74 6f 2e 73 63 72 6f 6c 6c 44 65 6c 74 61 20 3d 20 40 66 72 6f 6d 2e 73 63 72 6f 6c 6c 44 65 @to.scrollDelta.=.@from.scrollDe
2040 6c 74 61 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 40 74 6f 2e 70 6f 69 6e 74 65 72 43 75 72 72 lta;.............@to.pointerCurr
2060 65 6e 74 52 61 79 63 61 73 74 20 3d 20 40 66 72 6f 6d 2e 70 6f 69 6e 74 65 72 43 75 72 72 65 6e entRaycast.=.@from.pointerCurren
2080 74 52 61 79 63 61 73 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 40 74 6f 2e 70 6f 69 6e 74 65 tRaycast;.............@to.pointe
20a0 72 45 6e 74 65 72 20 3d 20 40 66 72 6f 6d 2e 70 6f 69 6e 74 65 72 45 6e 74 65 72 3b 0a 20 20 20 rEnter.=.@from.pointerEnter;....
20c0 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 .....}..........///.<summary>...
20e0 20 20 20 20 20 20 2f 2f 2f 20 47 69 76 65 6e 20 61 20 6d 6f 75 73 65 20 62 75 74 74 6f 6e 20 72 ......///.Given.a.mouse.button.r
2100 65 74 75 72 6e 20 74 68 65 20 63 75 72 72 65 6e 74 20 73 74 61 74 65 20 66 6f 72 20 74 68 65 20 eturn.the.current.state.for.the.
2120 66 72 61 6d 65 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 frame..........///.</summary>...
2140 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 62 75 74 74 6f 6e 49 64 22 ......///.<param.name="buttonId"
2160 3e 4d 6f 75 73 65 20 62 75 74 74 6f 6e 20 49 44 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 >Mouse.button.ID</param>........
2180 20 70 72 6f 74 65 63 74 65 64 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e 46 72 61 6d .protected.PointerEventData.Fram
21a0 65 50 72 65 73 73 53 74 61 74 65 20 53 74 61 74 65 46 6f 72 4d 6f 75 73 65 42 75 74 74 6f 6e 28 ePressState.StateForMouseButton(
21c0 69 6e 74 20 62 75 74 74 6f 6e 49 64 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 int.buttonId).........{.........
21e0 20 20 20 20 76 61 72 20 70 72 65 73 73 65 64 20 3d 20 69 6e 70 75 74 2e 47 65 74 4d 6f 75 73 65 ....var.pressed.=.input.GetMouse
2200 42 75 74 74 6f 6e 44 6f 77 6e 28 62 75 74 74 6f 6e 49 64 29 3b 0a 20 20 20 20 20 20 20 20 20 20 ButtonDown(buttonId);...........
2220 20 20 76 61 72 20 72 65 6c 65 61 73 65 64 20 3d 20 69 6e 70 75 74 2e 47 65 74 4d 6f 75 73 65 42 ..var.released.=.input.GetMouseB
2240 75 74 74 6f 6e 55 70 28 62 75 74 74 6f 6e 49 64 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 uttonUp(buttonId);.............i
2260 66 20 28 70 72 65 73 73 65 64 20 26 26 20 72 65 6c 65 61 73 65 64 29 0a 20 20 20 20 20 20 20 20 f.(pressed.&&.released).........
2280 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e ........return.PointerEventData.
22a0 46 72 61 6d 65 50 72 65 73 73 53 74 61 74 65 2e 50 72 65 73 73 65 64 41 6e 64 52 65 6c 65 61 73 FramePressState.PressedAndReleas
22c0 65 64 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 70 72 65 73 73 65 64 29 0a 20 20 20 ed;.............if.(pressed)....
22e0 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 .............return.PointerEvent
2300 44 61 74 61 2e 46 72 61 6d 65 50 72 65 73 73 53 74 61 74 65 2e 50 72 65 73 73 65 64 3b 0a 20 20 Data.FramePressState.Pressed;...
2320 20 20 20 20 20 20 20 20 20 20 69 66 20 28 72 65 6c 65 61 73 65 64 29 0a 20 20 20 20 20 20 20 20 ..........if.(released).........
2340 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e ........return.PointerEventData.
2360 46 72 61 6d 65 50 72 65 73 73 53 74 61 74 65 2e 52 65 6c 65 61 73 65 64 3b 0a 20 20 20 20 20 20 FramePressState.Released;.......
2380 20 20 20 20 20 20 72 65 74 75 72 6e 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e 46 72 ......return.PointerEventData.Fr
23a0 61 6d 65 50 72 65 73 73 53 74 61 74 65 2e 4e 6f 74 43 68 61 6e 67 65 64 3b 0a 20 20 20 20 20 20 amePressState.NotChanged;.......
23c0 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 63 6c 61 73 73 20 42 75 74 ..}..........protected.class.But
23e0 74 6f 6e 53 74 61 74 65 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 tonState.........{.............p
2400 72 69 76 61 74 65 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e 49 6e 70 75 74 42 75 74 rivate.PointerEventData.InputBut
2420 74 6f 6e 20 6d 5f 42 75 74 74 6f 6e 20 3d 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e ton.m_Button.=.PointerEventData.
2440 49 6e 70 75 74 42 75 74 74 6f 6e 2e 4c 65 66 74 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 InputButton.Left;..............p
2460 75 62 6c 69 63 20 4d 6f 75 73 65 42 75 74 74 6f 6e 45 76 65 6e 74 44 61 74 61 20 65 76 65 6e 74 ublic.MouseButtonEventData.event
2480 44 61 74 61 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 Data.............{..............
24a0 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 45 76 65 6e 74 44 61 74 61 3b 20 7d 0a 20 ...get.{.return.m_EventData;.}..
24c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 45 76 65 6e 74 44 61 74 61 ...............set.{.m_EventData
24e0 20 3d 20 76 61 6c 75 65 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 .=.value;.}.............}.......
2500 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e 49 .......public.PointerEventData.I
2520 6e 70 75 74 42 75 74 74 6f 6e 20 62 75 74 74 6f 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a nputButton.button.............{.
2540 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 42 ................get.{.return.m_B
2560 75 74 74 6f 6e 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d utton;.}.................set.{.m
2580 5f 42 75 74 74 6f 6e 20 3d 20 76 61 6c 75 65 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d _Button.=.value;.}.............}
25a0 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 4d 6f 75 73 65 42 75 74 74 6f ..............private.MouseButto
25c0 6e 45 76 65 6e 74 44 61 74 61 20 6d 5f 45 76 65 6e 74 44 61 74 61 3b 0a 20 20 20 20 20 20 20 20 nEventData.m_EventData;.........
25e0 7d 0a 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 63 6c 61 73 73 20 4d 6f 75 73 65 }..........protected.class.Mouse
2600 53 74 61 74 65 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 69 76 State.........{.............priv
2620 61 74 65 20 4c 69 73 74 3c 42 75 74 74 6f 6e 53 74 61 74 65 3e 20 6d 5f 54 72 61 63 6b 65 64 42 ate.List<ButtonState>.m_TrackedB
2640 75 74 74 6f 6e 73 20 3d 20 6e 65 77 20 4c 69 73 74 3c 42 75 74 74 6f 6e 53 74 61 74 65 3e 28 29 uttons.=.new.List<ButtonState>()
2660 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 41 6e 79 50 72 ;..............public.bool.AnyPr
2680 65 73 73 65 73 54 68 69 73 46 72 61 6d 65 28 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 essesThisFrame().............{..
26a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 ...............for.(int.i.=.0;.i
26c0 20 3c 20 6d 5f 54 72 61 63 6b 65 64 42 75 74 74 6f 6e 73 2e 43 6f 75 6e 74 3b 20 69 2b 2b 29 0a .<.m_TrackedButtons.Count;.i++).
26e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................{...............
2700 20 20 20 20 20 20 69 66 20 28 6d 5f 54 72 61 63 6b 65 64 42 75 74 74 6f 6e 73 5b 69 5d 2e 65 76 ......if.(m_TrackedButtons[i].ev
2720 65 6e 74 44 61 74 61 2e 50 72 65 73 73 65 64 54 68 69 73 46 72 61 6d 65 28 29 29 0a 20 20 20 20 entData.PressedThisFrame()).....
2740 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b ....................return.true;
2760 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 .................}..............
2780 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a ...return.false;.............}..
27a0 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 41 6e 79 52 65 6c 65 61 ............public.bool.AnyRelea
27c0 73 65 73 54 68 69 73 46 72 61 6d 65 28 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 sesThisFrame().............{....
27e0 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c .............for.(int.i.=.0;.i.<
2800 20 6d 5f 54 72 61 63 6b 65 64 42 75 74 74 6f 6e 73 2e 43 6f 75 6e 74 3b 20 69 2b 2b 29 0a 20 20 .m_TrackedButtons.Count;.i++)...
2820 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............{.................
2840 20 20 20 20 69 66 20 28 6d 5f 54 72 61 63 6b 65 64 42 75 74 74 6f 6e 73 5b 69 5d 2e 65 76 65 6e ....if.(m_TrackedButtons[i].even
2860 74 44 61 74 61 2e 52 65 6c 65 61 73 65 64 54 68 69 73 46 72 61 6d 65 28 29 29 0a 20 20 20 20 20 tData.ReleasedThisFrame())......
2880 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0a ...................return.true;.
28a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ................}...............
28c0 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 ..return.false;.............}...
28e0 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 42 75 74 74 6f 6e 53 74 61 74 65 20 47 65 ...........public.ButtonState.Ge
2900 74 42 75 74 74 6f 6e 53 74 61 74 65 28 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e 49 6e tButtonState(PointerEventData.In
2920 70 75 74 42 75 74 74 6f 6e 20 62 75 74 74 6f 6e 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a putButton.button).............{.
2940 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 42 75 74 74 6f 6e 53 74 61 74 65 20 74 72 61 63 ................ButtonState.trac
2960 6b 65 64 20 3d 20 6e 75 6c 6c 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 ked.=.null;.................for.
2980 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d 5f 54 72 61 63 6b 65 64 42 75 74 74 6f 6e 73 (int.i.=.0;.i.<.m_TrackedButtons
29a0 2e 43 6f 75 6e 74 3b 20 69 2b 2b 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 .Count;.i++).................{..
29c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 54 72 61 63 6b 65 64 ...................if.(m_Tracked
29e0 42 75 74 74 6f 6e 73 5b 69 5d 2e 62 75 74 74 6f 6e 20 3d 3d 20 62 75 74 74 6f 6e 29 0a 20 20 20 Buttons[i].button.==.button)....
2a00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 .................{..............
2a20 20 20 20 20 20 20 20 20 20 20 20 74 72 61 63 6b 65 64 20 3d 20 6d 5f 54 72 61 63 6b 65 64 42 75 ...........tracked.=.m_TrackedBu
2a40 74 74 6f 6e 73 5b 69 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ttons[i];.......................
2a60 20 20 62 72 65 61 6b 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 ..break;.....................}..
2a80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...............}................
2aa0 20 20 69 66 20 28 74 72 61 63 6b 65 64 20 3d 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 ..if.(tracked.==.null)..........
2ac0 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 72 61 .......{.....................tra
2ae0 63 6b 65 64 20 3d 20 6e 65 77 20 42 75 74 74 6f 6e 53 74 61 74 65 20 7b 20 62 75 74 74 6f 6e 20 cked.=.new.ButtonState.{.button.
2b00 3d 20 62 75 74 74 6f 6e 2c 20 65 76 65 6e 74 44 61 74 61 20 3d 20 6e 65 77 20 4d 6f 75 73 65 42 =.button,.eventData.=.new.MouseB
2b20 75 74 74 6f 6e 45 76 65 6e 74 44 61 74 61 28 29 20 7d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 uttonEventData().};.............
2b40 20 20 20 20 20 20 20 20 6d 5f 54 72 61 63 6b 65 64 42 75 74 74 6f 6e 73 2e 41 64 64 28 74 72 61 ........m_TrackedButtons.Add(tra
2b60 63 6b 65 64 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 cked);.................}........
2b80 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 61 63 6b 65 64 3b 0a 20 20 20 20 20 20 20 .........return.tracked;........
2ba0 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 .....}..............public.void.
2bc0 53 65 74 42 75 74 74 6f 6e 53 74 61 74 65 28 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e SetButtonState(PointerEventData.
2be0 49 6e 70 75 74 42 75 74 74 6f 6e 20 62 75 74 74 6f 6e 2c 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 InputButton.button,.PointerEvent
2c00 44 61 74 61 2e 46 72 61 6d 65 50 72 65 73 73 53 74 61 74 65 20 73 74 61 74 65 46 6f 72 4d 6f 75 Data.FramePressState.stateForMou
2c20 73 65 42 75 74 74 6f 6e 2c 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 20 64 61 74 61 29 seButton,.PointerEventData.data)
2c40 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 .............{.................v
2c60 61 72 20 74 6f 4d 6f 64 69 66 79 20 3d 20 47 65 74 42 75 74 74 6f 6e 53 74 61 74 65 28 62 75 74 ar.toModify.=.GetButtonState(but
2c80 74 6f 6e 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 4d 6f 64 69 66 79 2e 65 ton);.................toModify.e
2ca0 76 65 6e 74 44 61 74 61 2e 62 75 74 74 6f 6e 53 74 61 74 65 20 3d 20 73 74 61 74 65 46 6f 72 4d ventData.buttonState.=.stateForM
2cc0 6f 75 73 65 42 75 74 74 6f 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 6f 4d 6f ouseButton;.................toMo
2ce0 64 69 66 79 2e 65 76 65 6e 74 44 61 74 61 2e 62 75 74 74 6f 6e 44 61 74 61 20 3d 20 64 61 74 61 dify.eventData.buttonData.=.data
2d00 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 ;.............}.........}.......
2d20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 6e 66 ...///.<summary>.........///.Inf
2d40 6f 72 6d 61 74 69 6f 6e 20 61 62 6f 75 74 20 61 20 6d 6f 75 73 65 20 62 75 74 74 6f 6e 20 65 76 ormation.about.a.mouse.button.ev
2d60 65 6e 74 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 ent..........///.</summary>.....
2d80 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 4d 6f 75 73 65 42 75 74 74 6f 6e 45 76 65 6e ....public.class.MouseButtonEven
2da0 74 44 61 74 61 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 tData.........{.............///.
2dc0 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 73 74 <summary>.............///.The.st
2de0 61 74 65 20 6f 66 20 74 68 65 20 62 75 74 74 6f 6e 20 74 68 69 73 20 66 72 61 6d 65 2e 0a 20 20 ate.of.the.button.this.frame....
2e00 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 ..........///.</summary>........
2e20 20 20 20 20 20 70 75 62 6c 69 63 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e 46 72 61 .....public.PointerEventData.Fra
2e40 6d 65 50 72 65 73 73 53 74 61 74 65 20 62 75 74 74 6f 6e 53 74 61 74 65 3b 0a 0a 20 20 20 20 20 mePressState.buttonState;.......
2e60 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 20 20 20 .......///.<summary>............
2e80 20 2f 2f 2f 20 50 6f 69 6e 74 65 72 20 64 61 74 61 20 61 73 73 6f 63 69 61 74 65 64 20 77 69 74 .///.Pointer.data.associated.wit
2ea0 68 20 74 68 65 20 6d 6f 75 73 65 20 65 76 65 6e 74 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f h.the.mouse.event............../
2ec0 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 //.</summary>.............public
2ee0 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 20 62 75 74 74 6f 6e 44 61 74 61 3b 0a 0a 20 .PointerEventData.buttonData;...
2f00 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 ...........///.<summary>........
2f20 20 20 20 20 20 2f 2f 2f 20 57 61 73 20 74 68 65 20 62 75 74 74 6f 6e 20 70 72 65 73 73 65 64 20 .....///.Was.the.button.pressed.
2f40 74 68 69 73 20 66 72 61 6d 65 3f 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 this.frame?.............///.</su
2f60 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 50 mmary>.............public.bool.P
2f80 72 65 73 73 65 64 54 68 69 73 46 72 61 6d 65 28 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a ressedThisFrame().............{.
2fa0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 62 75 74 74 6f 6e 53 74 61 ................return.buttonSta
2fc0 74 65 20 3d 3d 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e 46 72 61 6d 65 50 72 65 73 te.==.PointerEventData.FramePres
2fe0 73 53 74 61 74 65 2e 50 72 65 73 73 65 64 20 7c 7c 20 62 75 74 74 6f 6e 53 74 61 74 65 20 3d 3d sState.Pressed.||.buttonState.==
3000 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e 46 72 61 6d 65 50 72 65 73 73 53 74 61 74 .PointerEventData.FramePressStat
3020 65 2e 50 72 65 73 73 65 64 41 6e 64 52 65 6c 65 61 73 65 64 3b 0a 20 20 20 20 20 20 20 20 20 20 e.PressedAndReleased;...........
3040 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 ..}..............///.<summary>..
3060 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 20 57 61 73 20 74 68 65 20 62 75 74 74 6f 6e 20 72 65 ...........///.Was.the.button.re
3080 6c 65 61 73 65 64 20 74 68 69 73 20 66 72 61 6d 65 3f 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f leased.this.frame?............./
30a0 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 //.</summary>.............public
30c0 20 62 6f 6f 6c 20 52 65 6c 65 61 73 65 64 54 68 69 73 46 72 61 6d 65 28 29 0a 20 20 20 20 20 20 .bool.ReleasedThisFrame().......
30e0 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 62 ......{.................return.b
3100 75 74 74 6f 6e 53 74 61 74 65 20 3d 3d 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e 46 uttonState.==.PointerEventData.F
3120 72 61 6d 65 50 72 65 73 73 53 74 61 74 65 2e 52 65 6c 65 61 73 65 64 20 7c 7c 20 62 75 74 74 6f ramePressState.Released.||.butto
3140 6e 53 74 61 74 65 20 3d 3d 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e 46 72 61 6d 65 nState.==.PointerEventData.Frame
3160 50 72 65 73 73 53 74 61 74 65 2e 50 72 65 73 73 65 64 41 6e 64 52 65 6c 65 61 73 65 64 3b 0a 20 PressState.PressedAndReleased;..
3180 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 ...........}.........}..........
31a0 70 72 69 76 61 74 65 20 72 65 61 64 6f 6e 6c 79 20 4d 6f 75 73 65 53 74 61 74 65 20 6d 5f 4d 6f private.readonly.MouseState.m_Mo
31c0 75 73 65 53 74 61 74 65 20 3d 20 6e 65 77 20 4d 6f 75 73 65 53 74 61 74 65 28 29 3b 0a 0a 20 20 useState.=.new.MouseState();....
31e0 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 ......///.<summary>.........///.
3200 52 65 74 75 72 6e 20 74 68 65 20 63 75 72 72 65 6e 74 20 4d 6f 75 73 65 53 74 61 74 65 2e 20 55 Return.the.current.MouseState..U
3220 73 69 6e 67 20 74 68 65 20 64 65 66 61 75 6c 74 20 70 6f 69 6e 74 65 72 2e 0a 20 20 20 20 20 20 sing.the.default.pointer........
3240 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 ..///.</summary>.........protect
3260 65 64 20 76 69 72 74 75 61 6c 20 4d 6f 75 73 65 53 74 61 74 65 20 47 65 74 4d 6f 75 73 65 50 6f ed.virtual.MouseState.GetMousePo
3280 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 interEventData().........{......
32a0 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 47 65 74 4d 6f 75 73 65 50 6f 69 6e 74 65 72 45 76 65 .......return.GetMousePointerEve
32c0 6e 74 44 61 74 61 28 30 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f ntData(0);.........}..........//
32e0 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 52 65 74 75 72 6e 20 74 /.<summary>.........///.Return.t
3300 68 65 20 63 75 72 72 65 6e 74 20 4d 6f 75 73 65 53 74 61 74 65 2e 0a 20 20 20 20 20 20 20 20 2f he.current.MouseState........../
3320 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 //.</summary>.........protected.
3340 76 69 72 74 75 61 6c 20 4d 6f 75 73 65 53 74 61 74 65 20 47 65 74 4d 6f 75 73 65 50 6f 69 6e 74 virtual.MouseState.GetMousePoint
3360 65 72 45 76 65 6e 74 44 61 74 61 28 69 6e 74 20 69 64 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 erEventData(int.id).........{...
3380 20 20 20 20 20 20 20 20 20 20 2f 2f 20 50 6f 70 75 6c 61 74 65 20 74 68 65 20 6c 65 66 74 20 62 ..........//.Populate.the.left.b
33a0 75 74 74 6f 6e 2e 2e 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 50 6f 69 6e 74 65 72 45 76 65 6e utton................PointerEven
33c0 74 44 61 74 61 20 6c 65 66 74 44 61 74 61 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 tData.leftData;.............var.
33e0 63 72 65 61 74 65 64 20 3d 20 47 65 74 50 6f 69 6e 74 65 72 44 61 74 61 28 6b 4d 6f 75 73 65 4c created.=.GetPointerData(kMouseL
3400 65 66 74 49 64 2c 20 6f 75 74 20 6c 65 66 74 44 61 74 61 2c 20 74 72 75 65 29 3b 0a 0a 20 20 20 eftId,.out.leftData,.true);.....
3420 20 20 20 20 20 20 20 20 20 6c 65 66 74 44 61 74 61 2e 52 65 73 65 74 28 29 3b 0a 0a 20 20 20 20 .........leftData.Reset();......
3440 20 20 20 20 20 20 20 20 69 66 20 28 63 72 65 61 74 65 64 29 0a 20 20 20 20 20 20 20 20 20 20 20 ........if.(created)............
3460 20 20 20 20 20 6c 65 66 74 44 61 74 61 2e 70 6f 73 69 74 69 6f 6e 20 3d 20 69 6e 70 75 74 2e 6d .....leftData.position.=.input.m
3480 6f 75 73 65 50 6f 73 69 74 69 6f 6e 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 56 65 63 74 6f ousePosition;..............Vecto
34a0 72 32 20 70 6f 73 20 3d 20 69 6e 70 75 74 2e 6d 6f 75 73 65 50 6f 73 69 74 69 6f 6e 3b 0a 20 20 r2.pos.=.input.mousePosition;...
34c0 20 20 20 20 20 20 20 20 20 20 69 66 20 28 43 75 72 73 6f 72 2e 6c 6f 63 6b 53 74 61 74 65 20 3d ..........if.(Cursor.lockState.=
34e0 3d 20 43 75 72 73 6f 72 4c 6f 63 6b 4d 6f 64 65 2e 4c 6f 63 6b 65 64 29 0a 20 20 20 20 20 20 20 =.CursorLockMode.Locked)........
3500 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 57 65 20 64 6f 6e .....{.................//.We.don
3520 27 74 20 77 61 6e 74 20 74 6f 20 64 6f 20 41 4e 59 20 63 75 72 73 6f 72 2d 62 61 73 65 64 20 69 't.want.to.do.ANY.cursor-based.i
3540 6e 74 65 72 61 63 74 69 6f 6e 20 77 68 65 6e 20 74 68 65 20 6d 6f 75 73 65 20 69 73 20 6c 6f 63 nteraction.when.the.mouse.is.loc
3560 6b 65 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 65 66 74 44 61 74 61 2e 70 6f 73 ked.................leftData.pos
3580 69 74 69 6f 6e 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 28 2d 31 2e 30 66 2c 20 2d 31 2e 30 66 ition.=.new.Vector2(-1.0f,.-1.0f
35a0 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 65 66 74 44 61 74 61 2e 64 65 6c 74 );.................leftData.delt
35c0 61 20 3d 20 56 65 63 74 6f 72 32 2e 7a 65 72 6f 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a a.=.Vector2.zero;.............}.
35e0 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 ............else.............{..
3600 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 65 66 74 44 61 74 61 2e 64 65 6c 74 61 20 3d 20 ...............leftData.delta.=.
3620 70 6f 73 20 2d 20 6c 65 66 74 44 61 74 61 2e 70 6f 73 69 74 69 6f 6e 3b 0a 20 20 20 20 20 20 20 pos.-.leftData.position;........
3640 20 20 20 20 20 20 20 20 20 6c 65 66 74 44 61 74 61 2e 70 6f 73 69 74 69 6f 6e 20 3d 20 70 6f 73 .........leftData.position.=.pos
3660 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6c 65 66 74 ;.............}.............left
3680 44 61 74 61 2e 73 63 72 6f 6c 6c 44 65 6c 74 61 20 3d 20 69 6e 70 75 74 2e 6d 6f 75 73 65 53 63 Data.scrollDelta.=.input.mouseSc
36a0 72 6f 6c 6c 44 65 6c 74 61 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6c 65 66 74 44 61 74 61 2e rollDelta;.............leftData.
36c0 62 75 74 74 6f 6e 20 3d 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e 49 6e 70 75 74 42 button.=.PointerEventData.InputB
36e0 75 74 74 6f 6e 2e 4c 65 66 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 76 65 6e 74 53 79 73 utton.Left;.............eventSys
3700 74 65 6d 2e 52 61 79 63 61 73 74 41 6c 6c 28 6c 65 66 74 44 61 74 61 2c 20 6d 5f 52 61 79 63 61 tem.RaycastAll(leftData,.m_Rayca
3720 73 74 52 65 73 75 6c 74 43 61 63 68 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 stResultCache);.............var.
3740 72 61 79 63 61 73 74 20 3d 20 46 69 6e 64 46 69 72 73 74 52 61 79 63 61 73 74 28 6d 5f 52 61 79 raycast.=.FindFirstRaycast(m_Ray
3760 63 61 73 74 52 65 73 75 6c 74 43 61 63 68 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6c 65 castResultCache);.............le
3780 66 74 44 61 74 61 2e 70 6f 69 6e 74 65 72 43 75 72 72 65 6e 74 52 61 79 63 61 73 74 20 3d 20 72 ftData.pointerCurrentRaycast.=.r
37a0 61 79 63 61 73 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 52 61 79 63 61 73 74 52 65 73 aycast;.............m_RaycastRes
37c0 75 6c 74 43 61 63 68 65 2e 43 6c 65 61 72 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f ultCache.Clear();............../
37e0 2f 20 63 6f 70 79 20 74 68 65 20 61 70 72 6f 70 72 69 61 74 65 20 64 61 74 61 20 69 6e 74 6f 20 /.copy.the.apropriate.data.into.
3800 72 69 67 68 74 20 61 6e 64 20 6d 69 64 64 6c 65 20 73 6c 6f 74 73 0a 20 20 20 20 20 20 20 20 20 right.and.middle.slots..........
3820 20 20 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 20 72 69 67 68 74 44 61 74 61 3b 0a 20 ...PointerEventData.rightData;..
3840 20 20 20 20 20 20 20 20 20 20 20 47 65 74 50 6f 69 6e 74 65 72 44 61 74 61 28 6b 4d 6f 75 73 65 ...........GetPointerData(kMouse
3860 52 69 67 68 74 49 64 2c 20 6f 75 74 20 72 69 67 68 74 44 61 74 61 2c 20 74 72 75 65 29 3b 0a 20 RightId,.out.rightData,.true);..
3880 20 20 20 20 20 20 20 20 20 20 20 43 6f 70 79 46 72 6f 6d 54 6f 28 6c 65 66 74 44 61 74 61 2c 20 ...........CopyFromTo(leftData,.
38a0 72 69 67 68 74 44 61 74 61 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 69 67 68 74 44 61 74 rightData);.............rightDat
38c0 61 2e 62 75 74 74 6f 6e 20 3d 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e 49 6e 70 75 a.button.=.PointerEventData.Inpu
38e0 74 42 75 74 74 6f 6e 2e 52 69 67 68 74 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 50 6f 69 6e tButton.Right;..............Poin
3900 74 65 72 45 76 65 6e 74 44 61 74 61 20 6d 69 64 64 6c 65 44 61 74 61 3b 0a 20 20 20 20 20 20 20 terEventData.middleData;........
3920 20 20 20 20 20 47 65 74 50 6f 69 6e 74 65 72 44 61 74 61 28 6b 4d 6f 75 73 65 4d 69 64 64 6c 65 .....GetPointerData(kMouseMiddle
3940 49 64 2c 20 6f 75 74 20 6d 69 64 64 6c 65 44 61 74 61 2c 20 74 72 75 65 29 3b 0a 20 20 20 20 20 Id,.out.middleData,.true);......
3960 20 20 20 20 20 20 20 43 6f 70 79 46 72 6f 6d 54 6f 28 6c 65 66 74 44 61 74 61 2c 20 6d 69 64 64 .......CopyFromTo(leftData,.midd
3980 6c 65 44 61 74 61 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 69 64 64 6c 65 44 61 74 61 2e leData);.............middleData.
39a0 62 75 74 74 6f 6e 20 3d 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e 49 6e 70 75 74 42 button.=.PointerEventData.InputB
39c0 75 74 74 6f 6e 2e 4d 69 64 64 6c 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4d 6f 75 utton.Middle;..............m_Mou
39e0 73 65 53 74 61 74 65 2e 53 65 74 42 75 74 74 6f 6e 53 74 61 74 65 28 50 6f 69 6e 74 65 72 45 76 seState.SetButtonState(PointerEv
3a00 65 6e 74 44 61 74 61 2e 49 6e 70 75 74 42 75 74 74 6f 6e 2e 4c 65 66 74 2c 20 53 74 61 74 65 46 entData.InputButton.Left,.StateF
3a20 6f 72 4d 6f 75 73 65 42 75 74 74 6f 6e 28 30 29 2c 20 6c 65 66 74 44 61 74 61 29 3b 0a 20 20 20 orMouseButton(0),.leftData);....
3a40 20 20 20 20 20 20 20 20 20 6d 5f 4d 6f 75 73 65 53 74 61 74 65 2e 53 65 74 42 75 74 74 6f 6e 53 .........m_MouseState.SetButtonS
3a60 74 61 74 65 28 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 2e 49 6e 70 75 74 42 75 74 74 6f tate(PointerEventData.InputButto
3a80 6e 2e 52 69 67 68 74 2c 20 53 74 61 74 65 46 6f 72 4d 6f 75 73 65 42 75 74 74 6f 6e 28 31 29 2c n.Right,.StateForMouseButton(1),
3aa0 20 72 69 67 68 74 44 61 74 61 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4d 6f 75 73 65 .rightData);.............m_Mouse
3ac0 53 74 61 74 65 2e 53 65 74 42 75 74 74 6f 6e 53 74 61 74 65 28 50 6f 69 6e 74 65 72 45 76 65 6e State.SetButtonState(PointerEven
3ae0 74 44 61 74 61 2e 49 6e 70 75 74 42 75 74 74 6f 6e 2e 4d 69 64 64 6c 65 2c 20 53 74 61 74 65 46 tData.InputButton.Middle,.StateF
3b00 6f 72 4d 6f 75 73 65 42 75 74 74 6f 6e 28 32 29 2c 20 6d 69 64 64 6c 65 44 61 74 61 29 3b 0a 0a orMouseButton(2),.middleData);..
3b20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f 4d 6f 75 73 65 53 74 61 74 65 3b ............return.m_MouseState;
3b40 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 .........}..........///.<summary
3b60 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 52 65 74 75 72 6e 20 74 68 65 20 6c 61 73 74 20 50 6f >.........///.Return.the.last.Po
3b80 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 20 66 6f 72 20 74 68 65 20 67 69 76 65 6e 20 74 6f 75 interEventData.for.the.given.tou
3ba0 63 68 20 2f 20 6d 6f 75 73 65 20 69 64 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d ch./.mouse.id..........///.</sum
3bc0 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 50 6f 69 6e 74 65 72 45 mary>.........protected.PointerE
3be0 76 65 6e 74 44 61 74 61 20 47 65 74 4c 61 73 74 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 ventData.GetLastPointerEventData
3c00 28 69 6e 74 20 69 64 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 50 (int.id).........{.............P
3c20 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 20 64 61 74 61 3b 0a 20 20 20 20 20 20 20 20 20 20 ointerEventData.data;...........
3c40 20 20 47 65 74 50 6f 69 6e 74 65 72 44 61 74 61 28 69 64 2c 20 6f 75 74 20 64 61 74 61 2c 20 66 ..GetPointerData(id,.out.data,.f
3c60 61 6c 73 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 64 61 74 61 3b 0a alse);.............return.data;.
3c80 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 ........}..........private.stati
3ca0 63 20 62 6f 6f 6c 20 53 68 6f 75 6c 64 53 74 61 72 74 44 72 61 67 28 56 65 63 74 6f 72 32 20 70 c.bool.ShouldStartDrag(Vector2.p
3cc0 72 65 73 73 50 6f 73 2c 20 56 65 63 74 6f 72 32 20 63 75 72 72 65 6e 74 50 6f 73 2c 20 66 6c 6f ressPos,.Vector2.currentPos,.flo
3ce0 61 74 20 74 68 72 65 73 68 6f 6c 64 2c 20 62 6f 6f 6c 20 75 73 65 44 72 61 67 54 68 72 65 73 68 at.threshold,.bool.useDragThresh
3d00 6f 6c 64 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 old).........{.............if.(!
3d20 75 73 65 44 72 61 67 54 68 72 65 73 68 6f 6c 64 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 useDragThreshold)...............
3d40 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 ..return.true;..............retu
3d60 72 6e 20 28 70 72 65 73 73 50 6f 73 20 2d 20 63 75 72 72 65 6e 74 50 6f 73 29 2e 73 71 72 4d 61 rn.(pressPos.-.currentPos).sqrMa
3d80 67 6e 69 74 75 64 65 20 3e 3d 20 74 68 72 65 73 68 6f 6c 64 20 2a 20 74 68 72 65 73 68 6f 6c 64 gnitude.>=.threshold.*.threshold
3da0 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 ;.........}..........///.<summar
3dc0 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 50 72 6f 63 65 73 73 20 6d 6f 76 65 6d 65 6e 74 20 y>.........///.Process.movement.
3de0 66 6f 72 20 74 68 65 20 63 75 72 72 65 6e 74 20 66 72 61 6d 65 20 77 69 74 68 20 74 68 65 20 67 for.the.current.frame.with.the.g
3e00 69 76 65 6e 20 70 6f 69 6e 74 65 72 20 65 76 65 6e 74 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 iven.pointer.event..........///.
3e20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 69 72 </summary>.........protected.vir
3e40 74 75 61 6c 20 76 6f 69 64 20 50 72 6f 63 65 73 73 4d 6f 76 65 28 50 6f 69 6e 74 65 72 45 76 65 tual.void.ProcessMove(PointerEve
3e60 6e 74 44 61 74 61 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 ntData.pointerEvent).........{..
3e80 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 74 61 72 67 65 74 47 4f 20 3d 20 28 43 75 72 73 6f ...........var.targetGO.=.(Curso
3ea0 72 2e 6c 6f 63 6b 53 74 61 74 65 20 3d 3d 20 43 75 72 73 6f 72 4c 6f 63 6b 4d 6f 64 65 2e 4c 6f r.lockState.==.CursorLockMode.Lo
3ec0 63 6b 65 64 20 3f 20 6e 75 6c 6c 20 3a 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 cked.?.null.:.pointerEvent.point
3ee0 65 72 43 75 72 72 65 6e 74 52 61 79 63 61 73 74 2e 67 61 6d 65 4f 62 6a 65 63 74 29 3b 0a 20 20 erCurrentRaycast.gameObject);...
3f00 20 20 20 20 20 20 20 20 20 20 48 61 6e 64 6c 65 50 6f 69 6e 74 65 72 45 78 69 74 41 6e 64 45 6e ..........HandlePointerExitAndEn
3f20 74 65 72 28 70 6f 69 6e 74 65 72 45 76 65 6e 74 2c 20 74 61 72 67 65 74 47 4f 29 3b 0a 20 20 20 ter(pointerEvent,.targetGO);....
3f40 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 .....}..........///.<summary>...
3f60 20 20 20 20 20 20 2f 2f 2f 20 50 72 6f 63 65 73 73 20 74 68 65 20 64 72 61 67 20 66 6f 72 20 74 ......///.Process.the.drag.for.t
3f80 68 65 20 63 75 72 72 65 6e 74 20 66 72 61 6d 65 20 77 69 74 68 20 74 68 65 20 67 69 76 65 6e 20 he.current.frame.with.the.given.
3fa0 70 6f 69 6e 74 65 72 20 65 76 65 6e 74 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d pointer.event..........///.</sum
3fc0 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 69 72 74 75 61 6c 20 mary>.........protected.virtual.
3fe0 76 6f 69 64 20 50 72 6f 63 65 73 73 44 72 61 67 28 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 void.ProcessDrag(PointerEventDat
4000 61 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 a.pointerEvent).........{.......
4020 20 20 20 20 20 20 69 66 20 28 21 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 49 73 50 6f 69 6e 74 65 ......if.(!pointerEvent.IsPointe
4040 72 4d 6f 76 69 6e 67 28 29 20 7c 7c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 43 75 72 rMoving().||.................Cur
4060 73 6f 72 2e 6c 6f 63 6b 53 74 61 74 65 20 3d 3d 20 43 75 72 73 6f 72 4c 6f 63 6b 4d 6f 64 65 2e sor.lockState.==.CursorLockMode.
4080 4c 6f 63 6b 65 64 20 7c 7c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 Locked.||.................pointe
40a0 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 44 72 61 67 20 3d 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 rEvent.pointerDrag.==.null).....
40c0 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 ............return;.............
40e0 20 69 66 20 28 21 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 64 72 61 67 67 69 6e 67 0a 20 20 20 20 .if.(!pointerEvent.dragging.....
4100 20 20 20 20 20 20 20 20 20 20 20 20 26 26 20 53 68 6f 75 6c 64 53 74 61 72 74 44 72 61 67 28 70 ............&&.ShouldStartDrag(p
4120 6f 69 6e 74 65 72 45 76 65 6e 74 2e 70 72 65 73 73 50 6f 73 69 74 69 6f 6e 2c 20 70 6f 69 6e 74 ointerEvent.pressPosition,.point
4140 65 72 45 76 65 6e 74 2e 70 6f 73 69 74 69 6f 6e 2c 20 65 76 65 6e 74 53 79 73 74 65 6d 2e 70 69 erEvent.position,.eventSystem.pi
4160 78 65 6c 44 72 61 67 54 68 72 65 73 68 6f 6c 64 2c 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 75 xelDragThreshold,.pointerEvent.u
4180 73 65 44 72 61 67 54 68 72 65 73 68 6f 6c 64 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a seDragThreshold)).............{.
41a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 78 65 63 75 74 65 45 76 65 6e 74 73 2e 45 78 ................ExecuteEvents.Ex
41c0 65 63 75 74 65 28 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 44 72 61 67 2c 20 ecute(pointerEvent.pointerDrag,.
41e0 70 6f 69 6e 74 65 72 45 76 65 6e 74 2c 20 45 78 65 63 75 74 65 45 76 65 6e 74 73 2e 62 65 67 69 pointerEvent,.ExecuteEvents.begi
4200 6e 44 72 61 67 48 61 6e 64 6c 65 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 nDragHandler);.................p
4220 6f 69 6e 74 65 72 45 76 65 6e 74 2e 64 72 61 67 67 69 6e 67 20 3d 20 74 72 75 65 3b 0a 20 20 20 ointerEvent.dragging.=.true;....
4240 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 72 61 67 20 .........}..............//.Drag.
4260 6e 6f 74 69 66 69 63 61 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 70 6f 69 notification.............if.(poi
4280 6e 74 65 72 45 76 65 6e 74 2e 64 72 61 67 67 69 6e 67 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 nterEvent.dragging).............
42a0 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 42 65 66 6f 72 65 20 64 6f 69 6e {.................//.Before.doin
42c0 67 20 64 72 61 67 20 77 65 20 73 68 6f 75 6c 64 20 63 61 6e 63 65 6c 20 61 6e 79 20 70 6f 69 6e g.drag.we.should.cancel.any.poin
42e0 74 65 72 20 64 6f 77 6e 20 73 74 61 74 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f ter.down.state................./
4300 2f 20 41 6e 64 20 63 6c 65 61 72 20 73 65 6c 65 63 74 69 6f 6e 21 0a 20 20 20 20 20 20 20 20 20 /.And.clear.selection!..........
4320 20 20 20 20 20 20 20 69 66 20 28 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 50 .......if.(pointerEvent.pointerP
4340 72 65 73 73 20 21 3d 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 44 72 61 67 ress.!=.pointerEvent.pointerDrag
4360 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 ).................{.............
4380 20 20 20 20 20 20 20 20 45 78 65 63 75 74 65 45 76 65 6e 74 73 2e 45 78 65 63 75 74 65 28 70 6f ........ExecuteEvents.Execute(po
43a0 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 50 72 65 73 73 2c 20 70 6f 69 6e 74 65 72 interEvent.pointerPress,.pointer
43c0 45 76 65 6e 74 2c 20 45 78 65 63 75 74 65 45 76 65 6e 74 73 2e 70 6f 69 6e 74 65 72 55 70 48 61 Event,.ExecuteEvents.pointerUpHa
43e0 6e 64 6c 65 72 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 ndler);......................poi
4400 6e 74 65 72 45 76 65 6e 74 2e 65 6c 69 67 69 62 6c 65 46 6f 72 43 6c 69 63 6b 20 3d 20 66 61 6c nterEvent.eligibleForClick.=.fal
4420 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 45 se;.....................pointerE
4440 76 65 6e 74 2e 70 6f 69 6e 74 65 72 50 72 65 73 73 20 3d 20 6e 75 6c 6c 3b 0a 20 20 20 20 20 20 vent.pointerPress.=.null;.......
4460 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 72 61 77 50 6f ..............pointerEvent.rawPo
4480 69 6e 74 65 72 50 72 65 73 73 20 3d 20 6e 75 6c 6c 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 interPress.=.null;..............
44a0 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 78 65 63 75 74 65 45 76 65 6e ...}.................ExecuteEven
44c0 74 73 2e 45 78 65 63 75 74 65 28 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 44 ts.Execute(pointerEvent.pointerD
44e0 72 61 67 2c 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2c 20 45 78 65 63 75 74 65 45 76 65 6e 74 73 rag,.pointerEvent,.ExecuteEvents
4500 2e 64 72 61 67 48 61 6e 64 6c 65 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 .dragHandler);.............}....
4520 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 .....}..........public.override.
4540 62 6f 6f 6c 20 49 73 50 6f 69 6e 74 65 72 4f 76 65 72 47 61 6d 65 4f 62 6a 65 63 74 28 69 6e 74 bool.IsPointerOverGameObject(int
4560 20 70 6f 69 6e 74 65 72 49 64 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 .pointerId).........{...........
4580 20 20 76 61 72 20 6c 61 73 74 50 6f 69 6e 74 65 72 20 3d 20 47 65 74 4c 61 73 74 50 6f 69 6e 74 ..var.lastPointer.=.GetLastPoint
45a0 65 72 45 76 65 6e 74 44 61 74 61 28 70 6f 69 6e 74 65 72 49 64 29 3b 0a 20 20 20 20 20 20 20 20 erEventData(pointerId);.........
45c0 20 20 20 20 69 66 20 28 6c 61 73 74 50 6f 69 6e 74 65 72 20 21 3d 20 6e 75 6c 6c 29 0a 20 20 20 ....if.(lastPointer.!=.null)....
45e0 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6c 61 73 74 50 6f 69 6e 74 65 72 2e .............return.lastPointer.
4600 70 6f 69 6e 74 65 72 45 6e 74 65 72 20 21 3d 20 6e 75 6c 6c 3b 0a 20 20 20 20 20 20 20 20 20 20 pointerEnter.!=.null;...........
4620 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 ..return.false;.........}.......
4640 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 6c 65 ...///.<summary>.........///.Cle
4660 61 72 20 61 6c 6c 20 70 6f 69 6e 74 65 72 73 20 61 6e 64 20 64 65 73 65 6c 65 63 74 20 61 6e 79 ar.all.pointers.and.deselect.any
4680 20 73 65 6c 65 63 74 65 64 20 6f 62 6a 65 63 74 73 20 69 6e 20 74 68 65 20 45 76 65 6e 74 53 79 .selected.objects.in.the.EventSy
46a0 73 74 65 6d 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 stem..........///.</summary>....
46c0 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 6f 69 64 20 43 6c 65 61 72 53 65 6c 65 63 74 69 .....protected.void.ClearSelecti
46e0 6f 6e 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 62 on().........{.............var.b
4700 61 73 65 45 76 65 6e 74 44 61 74 61 20 3d 20 47 65 74 42 61 73 65 45 76 65 6e 74 44 61 74 61 28 aseEventData.=.GetBaseEventData(
4720 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 70 6f 69 );..............foreach.(var.poi
4740 6e 74 65 72 20 69 6e 20 6d 5f 50 6f 69 6e 74 65 72 44 61 74 61 2e 56 61 6c 75 65 73 29 0a 20 20 nter.in.m_PointerData.Values)...
4760 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 63 ..........{.................//.c
4780 6c 65 61 72 20 61 6c 6c 20 73 65 6c 65 63 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 lear.all.selection..............
47a0 20 20 20 48 61 6e 64 6c 65 50 6f 69 6e 74 65 72 45 78 69 74 41 6e 64 45 6e 74 65 72 28 70 6f 69 ...HandlePointerExitAndEnter(poi
47c0 6e 74 65 72 2c 20 6e 75 6c 6c 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 nter,.null);.............}......
47e0 20 20 20 20 20 20 20 20 6d 5f 50 6f 69 6e 74 65 72 44 61 74 61 2e 43 6c 65 61 72 28 29 3b 0a 20 ........m_PointerData.Clear();..
4800 20 20 20 20 20 20 20 20 20 20 20 65 76 65 6e 74 53 79 73 74 65 6d 2e 53 65 74 53 65 6c 65 63 74 ...........eventSystem.SetSelect
4820 65 64 47 61 6d 65 4f 62 6a 65 63 74 28 6e 75 6c 6c 2c 20 62 61 73 65 45 76 65 6e 74 44 61 74 61 edGameObject(null,.baseEventData
4840 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 );.........}..........public.ove
4860 72 72 69 64 65 20 73 74 72 69 6e 67 20 54 6f 53 74 72 69 6e 67 28 29 0a 20 20 20 20 20 20 20 20 rride.string.ToString().........
4880 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 62 20 3d 20 6e 65 77 20 53 74 72 69 6e {.............var.sb.=.new.Strin
48a0 67 42 75 69 6c 64 65 72 28 22 3c 62 3e 50 6f 69 6e 74 65 72 20 49 6e 70 75 74 20 4d 6f 64 75 6c gBuilder("<b>Pointer.Input.Modul
48c0 65 20 6f 66 20 74 79 70 65 3a 20 3c 2f 62 3e 22 20 2b 20 47 65 74 54 79 70 65 28 29 29 3b 0a 20 e.of.type:.</b>".+.GetType());..
48e0 20 20 20 20 20 20 20 20 20 20 20 73 62 2e 41 70 70 65 6e 64 4c 69 6e 65 28 29 3b 0a 20 20 20 20 ...........sb.AppendLine();.....
4900 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 70 6f 69 6e 74 65 72 20 69 6e 20 ........foreach.(var.pointer.in.
4920 6d 5f 50 6f 69 6e 74 65 72 44 61 74 61 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 m_PointerData).............{....
4940 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 70 6f 69 6e 74 65 72 2e 56 61 6c 75 65 20 3d .............if.(pointer.Value.=
4960 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 =.null).....................cont
4980 69 6e 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 62 2e 41 70 70 65 6e 64 4c inue;.................sb.AppendL
49a0 69 6e 65 28 22 3c 42 3e 50 6f 69 6e 74 65 72 3a 3c 2f 62 3e 20 22 20 2b 20 70 6f 69 6e 74 65 72 ine("<B>Pointer:</b>.".+.pointer
49c0 2e 4b 65 79 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 62 2e 41 70 70 65 6e 64 .Key);.................sb.Append
49e0 4c 69 6e 65 28 70 6f 69 6e 74 65 72 2e 56 61 6c 75 65 2e 54 6f 53 74 72 69 6e 67 28 29 29 3b 0a Line(pointer.Value.ToString());.
4a00 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e ............}.............return
4a20 20 73 62 2e 54 6f 53 74 72 69 6e 67 28 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 .sb.ToString();.........}.......
4a40 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 44 65 73 ...///.<summary>.........///.Des
4a60 65 6c 65 63 74 20 74 68 65 20 63 75 72 72 65 6e 74 20 73 65 6c 65 63 74 65 64 20 47 61 6d 65 4f elect.the.current.selected.GameO
4a80 62 6a 65 63 74 20 69 66 20 74 68 65 20 63 75 72 72 65 6e 74 6c 79 20 70 6f 69 6e 74 65 64 2d 61 bject.if.the.currently.pointed-a
4aa0 74 20 47 61 6d 65 4f 62 6a 65 63 74 20 69 73 20 64 69 66 66 65 72 65 6e 74 2e 0a 20 20 20 20 20 t.GameObject.is.different.......
4ac0 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 ...///.</summary>.........///.<p
4ae0 61 72 61 6d 20 6e 61 6d 65 3d 22 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 22 3e 54 68 65 20 47 61 aram.name="currentOverGo">The.Ga
4b00 6d 65 4f 62 6a 65 63 74 20 74 68 65 20 70 6f 69 6e 74 65 72 20 69 73 20 63 75 72 72 65 6e 74 6c meObject.the.pointer.is.currentl
4b20 79 20 6f 76 65 72 2e 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 y.over.</param>.........///.<par
4b40 61 6d 20 6e 61 6d 65 3d 22 70 6f 69 6e 74 65 72 45 76 65 6e 74 22 3e 43 75 72 72 65 6e 74 20 65 am.name="pointerEvent">Current.e
4b60 76 65 6e 74 20 64 61 74 61 2e 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 vent.data.</param>.........prote
4b80 63 74 65 64 20 76 6f 69 64 20 44 65 73 65 6c 65 63 74 49 66 53 65 6c 65 63 74 69 6f 6e 43 68 61 cted.void.DeselectIfSelectionCha
4ba0 6e 67 65 64 28 47 61 6d 65 4f 62 6a 65 63 74 20 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 2c 20 42 nged(GameObject.currentOverGo,.B
4bc0 61 73 65 45 76 65 6e 74 44 61 74 61 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 29 0a 20 20 20 20 20 aseEventData.pointerEvent)......
4be0 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 6c 65 63 74 69 6f 6e 20 74 72 ...{.............//.Selection.tr
4c00 61 63 6b 69 6e 67 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 65 6c 65 63 74 48 61 6e acking.............var.selectHan
4c20 64 6c 65 72 47 4f 20 3d 20 45 78 65 63 75 74 65 45 76 65 6e 74 73 2e 47 65 74 45 76 65 6e 74 48 dlerGO.=.ExecuteEvents.GetEventH
4c40 61 6e 64 6c 65 72 3c 49 53 65 6c 65 63 74 48 61 6e 64 6c 65 72 3e 28 63 75 72 72 65 6e 74 4f 76 andler<ISelectHandler>(currentOv
4c60 65 72 47 6f 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 69 66 20 77 65 20 68 61 76 65 erGo);.............//.if.we.have
4c80 20 63 6c 69 63 6b 65 64 20 73 6f 6d 65 74 68 69 6e 67 20 6e 65 77 2c 20 64 65 73 65 6c 65 63 74 .clicked.something.new,.deselect
4ca0 20 74 68 65 20 6f 6c 64 20 74 68 69 6e 67 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 6c 65 .the.old.thing.............//.le
4cc0 61 76 65 20 27 73 65 6c 65 63 74 69 6f 6e 20 68 61 6e 64 6c 69 6e 67 27 20 75 70 20 74 6f 20 74 ave.'selection.handling'.up.to.t
4ce0 68 65 20 70 72 65 73 73 20 65 76 65 6e 74 20 74 68 6f 75 67 68 2e 0a 20 20 20 20 20 20 20 20 20 he.press.event.though...........
4d00 20 20 20 69 66 20 28 73 65 6c 65 63 74 48 61 6e 64 6c 65 72 47 4f 20 21 3d 20 65 76 65 6e 74 53 ...if.(selectHandlerGO.!=.eventS
4d20 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 53 65 6c 65 63 74 65 64 47 61 6d 65 4f 62 6a 65 63 74 29 ystem.currentSelectedGameObject)
4d40 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 76 65 6e 74 53 79 73 74 65 6d 2e 53 65 74 .................eventSystem.Set
4d60 53 65 6c 65 63 74 65 64 47 61 6d 65 4f 62 6a 65 63 74 28 6e 75 6c 6c 2c 20 70 6f 69 6e 74 65 72 SelectedGameObject(null,.pointer
4d80 45 76 65 6e 74 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 7d 0a 7d 0a 00 00 00 00 00 00 Event);.........}.....}.}.......
4da0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 12 00 00 00 50 6f 69 6e 74 65 72 49 6e 70 75 74 ....................PointerInput
4dc0 4d 6f 64 75 6c 65 00 00 18 00 00 00 55 6e 69 74 79 45 6e 67 69 6e 65 2e 45 76 65 6e 74 53 79 73 Module......UnityEngine.EventSys
4de0 74 65 6d 73 tems