summaryrefslogtreecommitdiff
path: root/Library/Artifacts/f3/f3671a4430c48b7306d215b6a1e853fd
blob: 5b238fcf738dd6dc1158327da4246cd16a177f9a (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 72 00 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......r.............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 a0 61 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 .a..............................
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 15 00 00 00 53 74 61 6e 64 61 6c 6f 6e 65 49 6e 70 75 74 4d 6f 64 75 6c ............StandaloneInputModul
10a0 65 00 00 00 0b 61 00 00 75 73 69 6e 67 20 53 79 73 74 65 6d 3b 0a 75 73 69 6e 67 20 55 6e 69 74 e....a..using.System;.using.Unit
10c0 79 45 6e 67 69 6e 65 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 53 65 72 69 61 yEngine;.using.UnityEngine.Seria
10e0 6c 69 7a 61 74 69 6f 6e 3b 0a 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 45 6e 67 69 6e 65 lization;..namespace.UnityEngine
1100 2e 45 76 65 6e 74 53 79 73 74 65 6d 73 0a 7b 0a 20 20 20 20 5b 41 64 64 43 6f 6d 70 6f 6e 65 6e .EventSystems.{.....[AddComponen
1120 74 4d 65 6e 75 28 22 45 76 65 6e 74 2f 53 74 61 6e 64 61 6c 6f 6e 65 20 49 6e 70 75 74 20 4d 6f tMenu("Event/Standalone.Input.Mo
1140 64 75 6c 65 22 29 5d 0a 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 2f 2f dule")].....///.<summary>.....//
1160 2f 20 41 20 42 61 73 65 49 6e 70 75 74 4d 6f 64 75 6c 65 20 64 65 73 69 67 6e 65 64 20 66 6f 72 /.A.BaseInputModule.designed.for
1180 20 6d 6f 75 73 65 20 2f 20 6b 65 79 62 6f 61 72 64 20 2f 20 63 6f 6e 74 72 6f 6c 6c 65 72 20 69 .mouse./.keyboard./.controller.i
11a0 6e 70 75 74 2e 0a 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 2f 2f 2f nput......///.</summary>.....///
11c0 20 3c 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 2f 2f 2f 20 49 6e 70 75 74 20 6d 6f 64 75 6c 65 20 .<remarks>.....///.Input.module.
11e0 66 6f 72 20 77 6f 72 6b 69 6e 67 20 77 69 74 68 2c 20 6d 6f 75 73 65 2c 20 6b 65 79 62 6f 61 72 for.working.with,.mouse,.keyboar
1200 64 2c 20 6f 72 20 63 6f 6e 74 72 6f 6c 6c 65 72 2e 0a 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 d,.or.controller......///.</rema
1220 72 6b 73 3e 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 53 74 61 6e 64 61 6c 6f 6e 65 rks>.....public.class.Standalone
1240 49 6e 70 75 74 4d 6f 64 75 6c 65 20 3a 20 50 6f 69 6e 74 65 72 49 6e 70 75 74 4d 6f 64 75 6c 65 InputModule.:.PointerInputModule
1260 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 66 6c 6f 61 74 20 6d 5f 50 .....{.........private.float.m_P
1280 72 65 76 41 63 74 69 6f 6e 54 69 6d 65 3b 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 56 revActionTime;.........private.V
12a0 65 63 74 6f 72 32 20 6d 5f 4c 61 73 74 4d 6f 76 65 56 65 63 74 6f 72 3b 0a 20 20 20 20 20 20 20 ector2.m_LastMoveVector;........
12c0 20 70 72 69 76 61 74 65 20 69 6e 74 20 6d 5f 43 6f 6e 73 65 63 75 74 69 76 65 4d 6f 76 65 43 6f .private.int.m_ConsecutiveMoveCo
12e0 75 6e 74 20 3d 20 30 3b 0a 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 56 65 63 74 6f 72 unt.=.0;..........private.Vector
1300 32 20 6d 5f 4c 61 73 74 4d 6f 75 73 65 50 6f 73 69 74 69 6f 6e 3b 0a 20 20 20 20 20 20 20 20 70 2.m_LastMousePosition;.........p
1320 72 69 76 61 74 65 20 56 65 63 74 6f 72 32 20 6d 5f 4d 6f 75 73 65 50 6f 73 69 74 69 6f 6e 3b 0a rivate.Vector2.m_MousePosition;.
1340 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 47 61 6d 65 4f 62 6a 65 63 74 20 6d 5f 43 75 .........private.GameObject.m_Cu
1360 72 72 65 6e 74 46 6f 63 75 73 65 64 47 61 6d 65 4f 62 6a 65 63 74 3b 0a 0a 20 20 20 20 20 20 20 rrentFocusedGameObject;.........
1380 20 70 72 69 76 61 74 65 20 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 20 6d 5f 49 6e 70 75 .private.PointerEventData.m_Inpu
13a0 74 50 6f 69 6e 74 65 72 45 76 65 6e 74 3b 0a 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 tPointerEvent;..........protecte
13c0 64 20 53 74 61 6e 64 61 6c 6f 6e 65 49 6e 70 75 74 4d 6f 64 75 6c 65 28 29 0a 20 20 20 20 20 20 d.StandaloneInputModule().......
13e0 20 20 7b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 4f 62 73 6f 6c 65 74 65 ..{.........}..........[Obsolete
1400 28 22 4d 6f 64 65 20 69 73 20 6e 6f 20 6c 6f 6e 67 65 72 20 6e 65 65 64 65 64 20 6f 6e 20 69 6e ("Mode.is.no.longer.needed.on.in
1420 70 75 74 20 6d 6f 64 75 6c 65 20 61 73 20 69 74 20 68 61 6e 64 6c 65 73 20 62 6f 74 68 20 6d 6f put.module.as.it.handles.both.mo
1440 75 73 65 20 61 6e 64 20 6b 65 79 62 6f 61 72 64 20 73 69 6d 75 6c 74 61 6e 65 6f 75 73 6c 79 2e use.and.keyboard.simultaneously.
1460 22 2c 20 66 61 6c 73 65 29 5d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 65 6e 75 6d 20 49 ",.false)].........public.enum.I
1480 6e 70 75 74 4d 6f 64 65 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 4d nputMode.........{.............M
14a0 6f 75 73 65 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 42 75 74 74 6f 6e 73 0a 20 20 20 20 20 20 ouse,.............Buttons.......
14c0 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 4f 62 73 6f 6c 65 74 65 28 22 4d 6f 64 65 20 69 73 20 ..}..........[Obsolete("Mode.is.
14e0 6e 6f 20 6c 6f 6e 67 65 72 20 6e 65 65 64 65 64 20 6f 6e 20 69 6e 70 75 74 20 6d 6f 64 75 6c 65 no.longer.needed.on.input.module
1500 20 61 73 20 69 74 20 68 61 6e 64 6c 65 73 20 62 6f 74 68 20 6d 6f 75 73 65 20 61 6e 64 20 6b 65 .as.it.handles.both.mouse.and.ke
1520 79 62 6f 61 72 64 20 73 69 6d 75 6c 74 61 6e 65 6f 75 73 6c 79 2e 22 2c 20 66 61 6c 73 65 29 5d yboard.simultaneously.",.false)]
1540 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 6e 70 75 74 4d 6f 64 65 20 69 6e 70 75 74 4d .........public.InputMode.inputM
1560 6f 64 65 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 ode.........{.............get.{.
1580 72 65 74 75 72 6e 20 49 6e 70 75 74 4d 6f 64 65 2e 4d 6f 75 73 65 3b 20 7d 0a 20 20 20 20 20 20 return.InputMode.Mouse;.}.......
15a0 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 0a 20 20 ..}..........[SerializeField]...
15c0 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 72 69 6e 67 20 6d 5f 48 6f 72 69 7a 6f 6e 74 61 ......private.string.m_Horizonta
15e0 6c 41 78 69 73 20 3d 20 22 48 6f 72 69 7a 6f 6e 74 61 6c 22 3b 0a 0a 20 20 20 20 20 20 20 20 2f lAxis.=."Horizontal";........../
1600 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 4e 61 6d 65 20 6f 66 //.<summary>.........///.Name.of
1620 20 74 68 65 20 76 65 72 74 69 63 61 6c 20 61 78 69 73 20 66 6f 72 20 6d 6f 76 65 6d 65 6e 74 20 .the.vertical.axis.for.movement.
1640 28 69 66 20 61 78 69 73 20 65 76 65 6e 74 73 20 61 72 65 20 75 73 65 64 29 2e 0a 20 20 20 20 20 (if.axis.events.are.used).......
1660 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 5b 53 65 72 69 61 ...///.</summary>.........[Seria
1680 6c 69 7a 65 46 69 65 6c 64 5d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 72 69 6e lizeField].........private.strin
16a0 67 20 6d 5f 56 65 72 74 69 63 61 6c 41 78 69 73 20 3d 20 22 56 65 72 74 69 63 61 6c 22 3b 0a 0a g.m_VerticalAxis.=."Vertical";..
16c0 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 20 2f 2f ........///.<summary>.........//
16e0 2f 20 4e 61 6d 65 20 6f 66 20 74 68 65 20 73 75 62 6d 69 74 20 62 75 74 74 6f 6e 2e 0a 20 20 20 /.Name.of.the.submit.button.....
1700 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 5b 53 65 72 .....///.</summary>.........[Ser
1720 69 61 6c 69 7a 65 46 69 65 6c 64 5d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 72 ializeField].........private.str
1740 69 6e 67 20 6d 5f 53 75 62 6d 69 74 42 75 74 74 6f 6e 20 3d 20 22 53 75 62 6d 69 74 22 3b 0a 0a ing.m_SubmitButton.=."Submit";..
1760 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 20 2f 2f ........///.<summary>.........//
1780 2f 20 4e 61 6d 65 20 6f 66 20 74 68 65 20 73 75 62 6d 69 74 20 62 75 74 74 6f 6e 2e 0a 20 20 20 /.Name.of.the.submit.button.....
17a0 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 5b 53 65 72 .....///.</summary>.........[Ser
17c0 69 61 6c 69 7a 65 46 69 65 6c 64 5d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 72 ializeField].........private.str
17e0 69 6e 67 20 6d 5f 43 61 6e 63 65 6c 42 75 74 74 6f 6e 20 3d 20 22 43 61 6e 63 65 6c 22 3b 0a 0a ing.m_CancelButton.=."Cancel";..
1800 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 46 69 65 6c 64 5d 0a 20 20 20 20 20 20 20 ........[SerializeField]........
1820 20 70 72 69 76 61 74 65 20 66 6c 6f 61 74 20 6d 5f 49 6e 70 75 74 41 63 74 69 6f 6e 73 50 65 72 .private.float.m_InputActionsPer
1840 53 65 63 6f 6e 64 20 3d 20 31 30 3b 0a 0a 20 20 20 20 20 20 20 20 5b 53 65 72 69 61 6c 69 7a 65 Second.=.10;..........[Serialize
1860 46 69 65 6c 64 5d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 66 6c 6f 61 74 20 6d 5f 52 Field].........private.float.m_R
1880 65 70 65 61 74 44 65 6c 61 79 20 3d 20 30 2e 35 66 3b 0a 0a 20 20 20 20 20 20 20 20 5b 53 65 72 epeatDelay.=.0.5f;..........[Ser
18a0 69 61 6c 69 7a 65 46 69 65 6c 64 5d 0a 20 20 20 20 20 20 20 20 5b 46 6f 72 6d 65 72 6c 79 53 65 ializeField].........[FormerlySe
18c0 72 69 61 6c 69 7a 65 64 41 73 28 22 6d 5f 41 6c 6c 6f 77 41 63 74 69 76 61 74 69 6f 6e 4f 6e 4d rializedAs("m_AllowActivationOnM
18e0 6f 62 69 6c 65 44 65 76 69 63 65 22 29 5d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 obileDevice")].........private.b
1900 6f 6f 6c 20 6d 5f 46 6f 72 63 65 4d 6f 64 75 6c 65 41 63 74 69 76 65 3b 0a 0a 20 20 20 20 20 20 ool.m_ForceModuleActive;........
1920 20 20 5b 4f 62 73 6f 6c 65 74 65 28 22 61 6c 6c 6f 77 41 63 74 69 76 61 74 69 6f 6e 4f 6e 4d 6f ..[Obsolete("allowActivationOnMo
1940 62 69 6c 65 44 65 76 69 63 65 20 68 61 73 20 62 65 65 6e 20 64 65 70 72 65 63 61 74 65 64 2e 20 bileDevice.has.been.deprecated..
1960 55 73 65 20 66 6f 72 63 65 4d 6f 64 75 6c 65 41 63 74 69 76 65 20 69 6e 73 74 65 61 64 20 28 55 Use.forceModuleActive.instead.(U
1980 6e 69 74 79 55 70 67 72 61 64 61 62 6c 65 29 20 2d 3e 20 66 6f 72 63 65 4d 6f 64 75 6c 65 41 63 nityUpgradable).->.forceModuleAc
19a0 74 69 76 65 22 29 5d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 61 6c 6c 6f tive")].........public.bool.allo
19c0 77 41 63 74 69 76 61 74 69 6f 6e 4f 6e 4d 6f 62 69 6c 65 44 65 76 69 63 65 0a 20 20 20 20 20 20 wActivationOnMobileDevice.......
19e0 20 20 7b 0a 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 46 ..{.............get.{.return.m_F
1a00 6f 72 63 65 4d 6f 64 75 6c 65 41 63 74 69 76 65 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 orceModuleActive;.}.............
1a20 73 65 74 20 7b 20 6d 5f 46 6f 72 63 65 4d 6f 64 75 6c 65 41 63 74 69 76 65 20 3d 20 76 61 6c 75 set.{.m_ForceModuleActive.=.valu
1a40 65 3b 20 7d 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 e;.}.........}..........///.<sum
1a60 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 46 6f 72 63 65 20 74 68 69 73 20 6d 6f 64 mary>.........///.Force.this.mod
1a80 75 6c 65 20 74 6f 20 62 65 20 61 63 74 69 76 65 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f ule.to.be.active..........///.</
1aa0 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0a 20 summary>.........///.<remarks>..
1ac0 20 20 20 20 20 20 20 2f 2f 2f 20 49 66 20 74 68 65 72 65 20 69 73 20 6e 6f 20 6d 6f 64 75 6c 65 .......///.If.there.is.no.module
1ae0 20 61 63 74 69 76 65 20 77 69 74 68 20 68 69 67 68 65 72 20 70 72 69 6f 72 69 74 79 20 28 6f 72 .active.with.higher.priority.(or
1b00 64 65 72 65 64 20 69 6e 20 74 68 65 20 69 6e 73 70 65 63 74 6f 72 29 20 74 68 69 73 20 6d 6f 64 dered.in.the.inspector).this.mod
1b20 75 6c 65 20 77 69 6c 6c 20 62 65 20 66 6f 72 63 65 64 20 61 63 74 69 76 65 20 65 76 65 6e 20 69 ule.will.be.forced.active.even.i
1b40 66 20 76 61 6c 69 64 20 65 6e 61 62 6c 69 6e 67 20 63 6f 6e 64 69 74 69 6f 6e 73 20 61 72 65 20 f.valid.enabling.conditions.are.
1b60 6e 6f 74 20 6d 65 74 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0a not.met..........///.</remarks>.
1b80 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 66 6f 72 63 65 4d 6f 64 75 6c 65 41 ........public.bool.forceModuleA
1ba0 63 74 69 76 65 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 ctive.........{.............get.
1bc0 7b 20 72 65 74 75 72 6e 20 6d 5f 46 6f 72 63 65 4d 6f 64 75 6c 65 41 63 74 69 76 65 3b 20 7d 0a {.return.m_ForceModuleActive;.}.
1be0 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 46 6f 72 63 65 4d 6f 64 75 6c 65 41 ............set.{.m_ForceModuleA
1c00 63 74 69 76 65 20 3d 20 76 61 6c 75 65 3b 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 ctive.=.value;.}.........}......
1c20 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 4e 75 ....///.<summary>.........///.Nu
1c40 6d 62 65 72 20 6f 66 20 6b 65 79 62 6f 61 72 64 20 2f 20 63 6f 6e 74 72 6f 6c 6c 65 72 20 69 6e mber.of.keyboard./.controller.in
1c60 70 75 74 73 20 61 6c 6c 6f 77 65 64 20 70 65 72 20 73 65 63 6f 6e 64 2e 0a 20 20 20 20 20 20 20 puts.allowed.per.second.........
1c80 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 66 .///.</summary>.........public.f
1ca0 6c 6f 61 74 20 69 6e 70 75 74 41 63 74 69 6f 6e 73 50 65 72 53 65 63 6f 6e 64 0a 20 20 20 20 20 loat.inputActionsPerSecond......
1cc0 20 20 20 7b 0a 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 ...{.............get.{.return.m_
1ce0 49 6e 70 75 74 41 63 74 69 6f 6e 73 50 65 72 53 65 63 6f 6e 64 3b 20 7d 0a 20 20 20 20 20 20 20 InputActionsPerSecond;.}........
1d00 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 49 6e 70 75 74 41 63 74 69 6f 6e 73 50 65 72 53 65 63 6f .....set.{.m_InputActionsPerSeco
1d20 6e 64 20 3d 20 76 61 6c 75 65 3b 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 nd.=.value;.}.........}.........
1d40 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 6c 61 79 .///.<summary>.........///.Delay
1d60 20 69 6e 20 73 65 63 6f 6e 64 73 20 62 65 66 6f 72 65 20 74 68 65 20 69 6e 70 75 74 20 61 63 74 .in.seconds.before.the.input.act
1d80 69 6f 6e 73 20 70 65 72 20 73 65 63 6f 6e 64 20 72 65 70 65 61 74 20 72 61 74 65 20 74 61 6b 65 ions.per.second.repeat.rate.take
1da0 73 20 65 66 66 65 63 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 s.effect..........///.</summary>
1dc0 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 2f .........///.<remarks>........./
1de0 2f 2f 20 49 66 20 74 68 65 20 73 61 6d 65 20 64 69 72 65 63 74 69 6f 6e 20 69 73 20 73 75 73 74 //.If.the.same.direction.is.sust
1e00 61 69 6e 65 64 2c 20 74 68 65 20 69 6e 70 75 74 41 63 74 69 6f 6e 73 50 65 72 53 65 63 6f 6e 64 ained,.the.inputActionsPerSecond
1e20 20 70 72 6f 70 65 72 74 79 20 63 61 6e 20 62 65 20 75 73 65 64 20 74 6f 20 63 6f 6e 74 72 6f 6c .property.can.be.used.to.control
1e40 20 74 68 65 20 72 61 74 65 20 61 74 20 77 68 69 63 68 20 65 76 65 6e 74 73 20 61 72 65 20 66 69 .the.rate.at.which.events.are.fi
1e60 72 65 64 2e 20 48 6f 77 65 76 65 72 2c 20 69 74 20 63 61 6e 20 62 65 20 64 65 73 69 72 61 62 6c red..However,.it.can.be.desirabl
1e80 65 20 74 68 61 74 20 74 68 65 20 66 69 72 73 74 20 72 65 70 65 74 69 74 69 6f 6e 20 69 73 20 64 e.that.the.first.repetition.is.d
1ea0 65 6c 61 79 65 64 2c 20 73 6f 20 74 68 65 20 75 73 65 72 20 64 6f 65 73 6e 27 74 20 67 65 74 20 elayed,.so.the.user.doesn't.get.
1ec0 72 65 70 65 61 74 65 64 20 61 63 74 69 6f 6e 73 20 62 79 20 61 63 63 69 64 65 6e 74 2e 0a 20 20 repeated.actions.by.accident....
1ee0 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 70 75 62 ......///.</remarks>.........pub
1f00 6c 69 63 20 66 6c 6f 61 74 20 72 65 70 65 61 74 44 65 6c 61 79 0a 20 20 20 20 20 20 20 20 7b 0a lic.float.repeatDelay.........{.
1f20 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 52 65 70 65 61 ............get.{.return.m_Repea
1f40 74 44 65 6c 61 79 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 52 65 tDelay;.}.............set.{.m_Re
1f60 70 65 61 74 44 65 6c 61 79 20 3d 20 76 61 6c 75 65 3b 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a peatDelay.=.value;.}.........}..
1f80 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 20 2f 2f ........///.<summary>.........//
1fa0 2f 20 4e 61 6d 65 20 6f 66 20 74 68 65 20 68 6f 72 69 7a 6f 6e 74 61 6c 20 61 78 69 73 20 66 6f /.Name.of.the.horizontal.axis.fo
1fc0 72 20 6d 6f 76 65 6d 65 6e 74 20 28 69 66 20 61 78 69 73 20 65 76 65 6e 74 73 20 61 72 65 20 75 r.movement.(if.axis.events.are.u
1fe0 73 65 64 29 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 sed)..........///.</summary>....
2000 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 68 6f 72 69 7a 6f 6e 74 61 6c 41 78 69 .....public.string.horizontalAxi
2020 73 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 s.........{.............get.{.re
2040 74 75 72 6e 20 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 41 78 69 73 3b 20 7d 0a 20 20 20 20 20 20 20 turn.m_HorizontalAxis;.}........
2060 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 41 78 69 73 20 3d 20 76 61 .....set.{.m_HorizontalAxis.=.va
2080 6c 75 65 3b 20 7d 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 lue;.}.........}..........///.<s
20a0 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 4e 61 6d 65 20 6f 66 20 74 68 65 20 ummary>.........///.Name.of.the.
20c0 76 65 72 74 69 63 61 6c 20 61 78 69 73 20 66 6f 72 20 6d 6f 76 65 6d 65 6e 74 20 28 69 66 20 61 vertical.axis.for.movement.(if.a
20e0 78 69 73 20 65 76 65 6e 74 73 20 61 72 65 20 75 73 65 64 29 2e 0a 20 20 20 20 20 20 20 20 2f 2f xis.events.are.used)..........//
2100 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 73 74 72 69 /.</summary>.........public.stri
2120 6e 67 20 76 65 72 74 69 63 61 6c 41 78 69 73 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 ng.verticalAxis.........{.......
2140 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 56 65 72 74 69 63 61 6c 41 78 69 ......get.{.return.m_VerticalAxi
2160 73 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 56 65 72 74 69 63 61 s;.}.............set.{.m_Vertica
2180 6c 41 78 69 73 20 3d 20 76 61 6c 75 65 3b 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 lAxis.=.value;.}.........}......
21a0 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 4d 61 ....///.<summary>.........///.Ma
21c0 78 69 6d 75 6d 20 6e 75 6d 62 65 72 20 6f 66 20 69 6e 70 75 74 20 65 76 65 6e 74 73 20 68 61 6e ximum.number.of.input.events.han
21e0 64 6c 65 64 20 70 65 72 20 73 65 63 6f 6e 64 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 dled.per.second..........///.</s
2200 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 73 75 ummary>.........public.string.su
2220 62 6d 69 74 42 75 74 74 6f 6e 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 bmitButton.........{............
2240 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 6d 5f 53 75 62 6d 69 74 42 75 74 74 6f 6e 3b 20 7d 0a .get.{.return.m_SubmitButton;.}.
2260 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 20 7b 20 6d 5f 53 75 62 6d 69 74 42 75 74 74 6f 6e ............set.{.m_SubmitButton
2280 20 3d 20 76 61 6c 75 65 3b 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f .=.value;.}.........}........../
22a0 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 70 75 74 20 6d //.<summary>.........///.Input.m
22c0 61 6e 61 67 65 72 20 6e 61 6d 65 20 66 6f 72 20 74 68 65 20 27 63 61 6e 63 65 6c 27 20 62 75 74 anager.name.for.the.'cancel'.but
22e0 74 6f 6e 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 ton..........///.</summary>.....
2300 20 20 20 20 70 75 62 6c 69 63 20 73 74 72 69 6e 67 20 63 61 6e 63 65 6c 42 75 74 74 6f 6e 0a 20 ....public.string.cancelButton..
2320 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 20 7b 20 72 65 74 75 72 .......{.............get.{.retur
2340 6e 20 6d 5f 43 61 6e 63 65 6c 42 75 74 74 6f 6e 3b 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 n.m_CancelButton;.}.............
2360 73 65 74 20 7b 20 6d 5f 43 61 6e 63 65 6c 42 75 74 74 6f 6e 20 3d 20 76 61 6c 75 65 3b 20 7d 0a set.{.m_CancelButton.=.value;.}.
2380 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 62 6f 6f 6c 20 ........}..........private.bool.
23a0 53 68 6f 75 6c 64 49 67 6e 6f 72 65 45 76 65 6e 74 73 4f 6e 4e 6f 46 6f 63 75 73 28 29 0a 20 20 ShouldIgnoreEventsOnNoFocus()...
23c0 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 77 69 74 63 68 20 28 53 79 73 74 ......{.............switch.(Syst
23e0 65 6d 49 6e 66 6f 2e 6f 70 65 72 61 74 69 6e 67 53 79 73 74 65 6d 46 61 6d 69 6c 79 29 0a 20 20 emInfo.operatingSystemFamily)...
2400 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 63 61 73 65 ..........{.................case
2420 20 4f 70 65 72 61 74 69 6e 67 53 79 73 74 65 6d 46 61 6d 69 6c 79 2e 57 69 6e 64 6f 77 73 3a 0a .OperatingSystemFamily.Windows:.
2440 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 4f 70 65 72 61 74 69 6e 67 53 79 ................case.OperatingSy
2460 73 74 65 6d 46 61 6d 69 6c 79 2e 4c 69 6e 75 78 3a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 stemFamily.Linux:...............
2480 20 20 63 61 73 65 20 4f 70 65 72 61 74 69 6e 67 53 79 73 74 65 6d 46 61 6d 69 6c 79 2e 4d 61 63 ..case.OperatingSystemFamily.Mac
24a0 4f 53 58 3a 0a 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0a 20 20 20 20 20 20 20 20 20 20 OSX:.#if.UNITY_EDITOR...........
24c0 20 20 20 20 20 20 20 20 20 20 69 66 20 28 55 6e 69 74 79 45 64 69 74 6f 72 2e 45 64 69 74 6f 72 ..........if.(UnityEditor.Editor
24e0 41 70 70 6c 69 63 61 74 69 6f 6e 2e 69 73 52 65 6d 6f 74 65 43 6f 6e 6e 65 63 74 65 64 29 0a 20 Application.isRemoteConnected)..
2500 20 20 20 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 66 61 .......................return.fa
2520 6c 73 65 3b 0a 23 65 6e 64 69 66 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 lse;.#endif.....................
2540 72 65 74 75 72 6e 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 65 66 return.true;.................def
2560 61 75 6c 74 3a 0a 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 ault:.....................return
2580 20 66 61 6c 73 65 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 .false;.............}.........}.
25a0 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 76 6f 69 64 20 55 70 .........public.override.void.Up
25c0 64 61 74 65 4d 6f 64 75 6c 65 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 dateModule().........{..........
25e0 20 20 20 69 66 20 28 21 65 76 65 6e 74 53 79 73 74 65 6d 2e 69 73 46 6f 63 75 73 65 64 20 26 26 ...if.(!eventSystem.isFocused.&&
2600 20 53 68 6f 75 6c 64 49 67 6e 6f 72 65 45 76 65 6e 74 73 4f 6e 4e 6f 46 6f 63 75 73 28 29 29 0a .ShouldIgnoreEventsOnNoFocus()).
2620 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 69 66 ............{.................if
2640 20 28 6d 5f 49 6e 70 75 74 50 6f 69 6e 74 65 72 45 76 65 6e 74 20 21 3d 20 6e 75 6c 6c 20 26 26 .(m_InputPointerEvent.!=.null.&&
2660 20 6d 5f 49 6e 70 75 74 50 6f 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 44 72 61 67 .m_InputPointerEvent.pointerDrag
2680 20 21 3d 20 6e 75 6c 6c 20 26 26 20 6d 5f 49 6e 70 75 74 50 6f 69 6e 74 65 72 45 76 65 6e 74 2e .!=.null.&&.m_InputPointerEvent.
26a0 64 72 61 67 67 69 6e 67 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 dragging).................{.....
26c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 6c 65 61 73 65 4d 6f 75 73 65 28 6d 5f 49 ................ReleaseMouse(m_I
26e0 6e 70 75 74 50 6f 69 6e 74 65 72 45 76 65 6e 74 2c 20 6d 5f 49 6e 70 75 74 50 6f 69 6e 74 65 72 nputPointerEvent,.m_InputPointer
2700 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 43 75 72 72 65 6e 74 52 61 79 63 61 73 74 2e 67 61 6d 65 Event.pointerCurrentRaycast.game
2720 4f 62 6a 65 63 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 Object);.................}......
2740 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 6e 70 75 74 50 6f 69 6e 74 65 72 45 76 65 6e 74 20 ............m_InputPointerEvent.
2760 3d 20 6e 75 6c 6c 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b =.null;..................return;
2780 0a 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 6d 5f 4c 61 .............}..............m_La
27a0 73 74 4d 6f 75 73 65 50 6f 73 69 74 69 6f 6e 20 3d 20 6d 5f 4d 6f 75 73 65 50 6f 73 69 74 69 6f stMousePosition.=.m_MousePositio
27c0 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4d 6f 75 73 65 50 6f 73 69 74 69 6f 6e 20 3d n;.............m_MousePosition.=
27e0 20 69 6e 70 75 74 2e 6d 6f 75 73 65 50 6f 73 69 74 69 6f 6e 3b 0a 20 20 20 20 20 20 20 20 7d 0a .input.mousePosition;.........}.
2800 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 52 65 6c 65 61 73 65 4d 6f 75 .........private.void.ReleaseMou
2820 73 65 28 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 se(PointerEventData.pointerEvent
2840 2c 20 47 61 6d 65 4f 62 6a 65 63 74 20 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 29 0a 20 20 20 20 ,.GameObject.currentOverGo).....
2860 20 20 20 20 7b 0a 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 ....{.............ExecuteEvents.
2880 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 50 72 65 73 Execute(pointerEvent.pointerPres
28a0 73 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 2e 70 s,.pointerEvent,.ExecuteEvents.p
28c0 6f 69 6e 74 65 72 55 70 48 61 6e 64 6c 65 72 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 ointerUpHandler);..............v
28e0 61 72 20 70 6f 69 6e 74 65 72 55 70 48 61 6e 64 6c 65 72 20 3d 20 45 78 65 63 75 74 65 45 76 65 ar.pointerUpHandler.=.ExecuteEve
2900 6e 74 73 2e 47 65 74 45 76 65 6e 74 48 61 6e 64 6c 65 72 3c 49 50 6f 69 6e 74 65 72 43 6c 69 63 nts.GetEventHandler<IPointerClic
2920 6b 48 61 6e 64 6c 65 72 3e 28 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 29 3b 0a 0a 20 20 20 20 20 kHandler>(currentOverGo);.......
2940 20 20 20 20 20 20 20 2f 2f 20 50 6f 69 6e 74 65 72 43 6c 69 63 6b 20 61 6e 64 20 44 72 6f 70 20 .......//.PointerClick.and.Drop.
2960 65 76 65 6e 74 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 70 6f 69 6e 74 65 72 45 76 events.............if.(pointerEv
2980 65 6e 74 2e 70 6f 69 6e 74 65 72 50 72 65 73 73 20 3d 3d 20 70 6f 69 6e 74 65 72 55 70 48 61 6e ent.pointerPress.==.pointerUpHan
29a0 64 6c 65 72 20 26 26 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 65 6c 69 67 69 62 6c 65 46 6f 72 dler.&&.pointerEvent.eligibleFor
29c0 43 6c 69 63 6b 29 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 Click).............{............
29e0 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 69 6e 74 .....ExecuteEvents.Execute(point
2a00 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 45 76 65 erEvent.pointerPress,.pointerEve
2a20 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 43 6c 69 63 6b 48 61 nt,.ExecuteEvents.pointerClickHa
2a40 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 20 20 20 20 20 20 20 ndler);.............}...........
2a60 20 20 65 6c 73 65 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 44 ..else.if.(pointerEvent.pointerD
2a80 72 61 67 20 21 3d 20 6e 75 6c 6c 20 26 26 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 64 72 61 67 rag.!=.null.&&.pointerEvent.drag
2aa0 67 69 6e 67 29 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 ging).............{.............
2ac0 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 48 69 65 72 61 72 63 ....ExecuteEvents.ExecuteHierarc
2ae0 68 79 28 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 2c 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2c 20 hy(currentOverGo,.pointerEvent,.
2b00 45 78 65 63 75 74 65 45 76 65 6e 74 73 2e 64 72 6f 70 48 61 6e 64 6c 65 72 29 3b 0a 20 20 20 20 ExecuteEvents.dropHandler);.....
2b20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 45 76 ........}..............pointerEv
2b40 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 73 65 3b 0a 20 20 ent.eligibleForClick.=.false;...
2b60 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 50 72 ..........pointerEvent.pointerPr
2b80 65 73 73 20 3d 20 6e 75 6c 6c 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 45 ess.=.null;.............pointerE
2ba0 76 65 6e 74 2e 72 61 77 50 6f 69 6e 74 65 72 50 72 65 73 73 20 3d 20 6e 75 6c 6c 3b 0a 0a 20 20 vent.rawPointerPress.=.null;....
2bc0 20 20 20 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 ..........if.(pointerEvent.point
2be0 65 72 44 72 61 67 20 21 3d 20 6e 75 6c 6c 20 26 26 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 64 erDrag.!=.null.&&.pointerEvent.d
2c00 72 61 67 67 69 6e 67 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 78 65 63 75 74 65 ragging).................Execute
2c20 45 76 65 6e 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 Events.Execute(pointerEvent.poin
2c40 74 65 72 44 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 terDrag,.pointerEvent,.ExecuteEv
2c60 65 6e 74 73 2e 65 6e 64 44 72 61 67 48 61 6e 64 6c 65 72 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 ents.endDragHandler);...........
2c80 20 20 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 64 72 61 67 67 69 6e 67 20 3d 20 66 61 6c 73 65 ...pointerEvent.dragging.=.false
2ca0 3b 0a 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 70 6f 69 6e 74 ;.............pointerEvent.point
2cc0 65 72 44 72 61 67 20 3d 20 6e 75 6c 6c 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 72 erDrag.=.null;..............//.r
2ce0 65 64 6f 20 70 6f 69 6e 74 65 72 20 65 6e 74 65 72 20 2f 20 65 78 69 74 20 74 6f 20 72 65 66 72 edo.pointer.enter./.exit.to.refr
2d00 65 73 68 20 73 74 61 74 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 73 6f 20 74 68 61 74 esh.state.............//.so.that
2d20 20 69 66 20 77 65 20 6d 6f 75 73 65 64 20 6f 76 65 72 20 73 6f 6d 65 74 68 69 6e 67 20 74 68 61 .if.we.moused.over.something.tha
2d40 74 20 69 67 6e 6f 72 65 64 20 69 74 20 62 65 66 6f 72 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 t.ignored.it.before.............
2d60 2f 2f 20 64 75 65 20 74 6f 20 68 61 76 69 6e 67 20 70 72 65 73 73 65 64 20 6f 6e 20 73 6f 6d 65 //.due.to.having.pressed.on.some
2d80 74 68 69 6e 67 20 65 6c 73 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 69 74 20 6e 6f 77 thing.else.............//.it.now
2da0 20 67 65 74 73 20 69 74 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 75 72 72 65 6e .gets.it..............if.(curren
2dc0 74 4f 76 65 72 47 6f 20 21 3d 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 45 tOverGo.!=.pointerEvent.pointerE
2de0 6e 74 65 72 29 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 nter).............{.............
2e00 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 74 65 72 28 70 6f ....HandlePointerExitAndEnter(po
2e20 69 6e 74 65 72 45 76 65 6e 74 2c 20 6e 75 6c 6c 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 interEvent,.null);..............
2e40 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
2e60 6e 74 65 72 45 76 65 6e 74 2c 20 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 29 3b 0a 20 20 20 20 20 nterEvent,.currentOverGo);......
2e80 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 6e 70 75 74 50 6f 69 .......}..............m_InputPoi
2ea0 6e 74 65 72 45 76 65 6e 74 20 3d 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 3b 0a 20 20 20 20 20 20 nterEvent.=.pointerEvent;.......
2ec0 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 62 6f 6f ..}..........public.override.boo
2ee0 6c 20 49 73 4d 6f 64 75 6c 65 53 75 70 70 6f 72 74 65 64 28 29 0a 20 20 20 20 20 20 20 20 7b 0a l.IsModuleSupported().........{.
2f00 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6d 5f 46 6f 72 63 65 4d 6f 64 75 6c 65 ............return.m_ForceModule
2f20 41 63 74 69 76 65 20 7c 7c 20 69 6e 70 75 74 2e 6d 6f 75 73 65 50 72 65 73 65 6e 74 20 7c 7c 20 Active.||.input.mousePresent.||.
2f40 69 6e 70 75 74 2e 74 6f 75 63 68 53 75 70 70 6f 72 74 65 64 3b 0a 20 20 20 20 20 20 20 20 7d 0a input.touchSupported;.........}.
2f60 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 62 6f 6f 6c 20 53 68 .........public.override.bool.Sh
2f80 6f 75 6c 64 41 63 74 69 76 61 74 65 4d 6f 64 75 6c 65 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 ouldActivateModule().........{..
2fa0 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 62 61 73 65 2e 53 68 6f 75 6c 64 41 63 74 69 76 ...........if.(!base.ShouldActiv
2fc0 61 74 65 4d 6f 64 75 6c 65 28 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 ateModule()).................ret
2fe0 75 72 6e 20 66 61 6c 73 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 68 6f 75 urn.false;..............var.shou
3000 6c 64 41 63 74 69 76 61 74 65 20 3d 20 6d 5f 46 6f 72 63 65 4d 6f 64 75 6c 65 41 63 74 69 76 65 ldActivate.=.m_ForceModuleActive
3020 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 68 6f 75 6c 64 41 63 74 69 76 61 74 65 20 7c 3d 20 ;.............shouldActivate.|=.
3040 69 6e 70 75 74 2e 47 65 74 42 75 74 74 6f 6e 44 6f 77 6e 28 6d 5f 53 75 62 6d 69 74 42 75 74 74 input.GetButtonDown(m_SubmitButt
3060 6f 6e 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 68 6f 75 6c 64 41 63 74 69 76 61 74 65 20 on);.............shouldActivate.
3080 7c 3d 20 69 6e 70 75 74 2e 47 65 74 42 75 74 74 6f 6e 44 6f 77 6e 28 6d 5f 43 61 6e 63 65 6c 42 |=.input.GetButtonDown(m_CancelB
30a0 75 74 74 6f 6e 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 68 6f 75 6c 64 41 63 74 69 76 61 utton);.............shouldActiva
30c0 74 65 20 7c 3d 20 21 4d 61 74 68 66 2e 41 70 70 72 6f 78 69 6d 61 74 65 6c 79 28 69 6e 70 75 74 te.|=.!Mathf.Approximately(input
30e0 2e 47 65 74 41 78 69 73 52 61 77 28 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 41 78 69 73 29 2c 20 30 .GetAxisRaw(m_HorizontalAxis),.0
3100 2e 30 66 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 68 6f 75 6c 64 41 63 74 69 76 61 74 65 .0f);.............shouldActivate
3120 20 7c 3d 20 21 4d 61 74 68 66 2e 41 70 70 72 6f 78 69 6d 61 74 65 6c 79 28 69 6e 70 75 74 2e 47 .|=.!Mathf.Approximately(input.G
3140 65 74 41 78 69 73 52 61 77 28 6d 5f 56 65 72 74 69 63 61 6c 41 78 69 73 29 2c 20 30 2e 30 66 29 etAxisRaw(m_VerticalAxis),.0.0f)
3160 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 68 6f 75 6c 64 41 63 74 69 76 61 74 65 20 7c 3d 20 ;.............shouldActivate.|=.
3180 28 6d 5f 4d 6f 75 73 65 50 6f 73 69 74 69 6f 6e 20 2d 20 6d 5f 4c 61 73 74 4d 6f 75 73 65 50 6f (m_MousePosition.-.m_LastMousePo
31a0 73 69 74 69 6f 6e 29 2e 73 71 72 4d 61 67 6e 69 74 75 64 65 20 3e 20 30 2e 30 66 3b 0a 20 20 20 sition).sqrMagnitude.>.0.0f;....
31c0 20 20 20 20 20 20 20 20 20 73 68 6f 75 6c 64 41 63 74 69 76 61 74 65 20 7c 3d 20 69 6e 70 75 74 .........shouldActivate.|=.input
31e0 2e 47 65 74 4d 6f 75 73 65 42 75 74 74 6f 6e 44 6f 77 6e 28 30 29 3b 0a 0a 20 20 20 20 20 20 20 .GetMouseButtonDown(0);.........
3200 20 20 20 20 20 69 66 20 28 69 6e 70 75 74 2e 74 6f 75 63 68 43 6f 75 6e 74 20 3e 20 30 29 0a 20 .....if.(input.touchCount.>.0)..
3220 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 68 6f 75 6c 64 41 63 74 69 76 61 74 65 20 3d 20 ...............shouldActivate.=.
3240 74 72 75 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 73 68 6f 75 6c 64 true;..............return.should
3260 41 63 74 69 76 61 74 65 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 2f 2f 2f Activate;.........}..........///
3280 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 65 20 42 61 73 65 49 .<summary>.........///.See.BaseI
32a0 6e 70 75 74 4d 6f 64 75 6c 65 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 nputModule..........///.</summar
32c0 79 3e 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 76 6f 69 64 20 y>.........public.override.void.
32e0 41 63 74 69 76 61 74 65 4d 6f 64 75 6c 65 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 ActivateModule().........{......
3300 20 20 20 20 20 20 20 69 66 20 28 21 65 76 65 6e 74 53 79 73 74 65 6d 2e 69 73 46 6f 63 75 73 65 .......if.(!eventSystem.isFocuse
3320 64 20 26 26 20 53 68 6f 75 6c 64 49 67 6e 6f 72 65 45 76 65 6e 74 73 4f 6e 4e 6f 46 6f 63 75 73 d.&&.ShouldIgnoreEventsOnNoFocus
3340 28 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0a 0a 20 20 20 ()).................return;.....
3360 20 20 20 20 20 20 20 20 20 62 61 73 65 2e 41 63 74 69 76 61 74 65 4d 6f 64 75 6c 65 28 29 3b 0a .........base.ActivateModule();.
3380 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4d 6f 75 73 65 50 6f 73 69 74 69 6f 6e 20 3d 20 69 6e ............m_MousePosition.=.in
33a0 70 75 74 2e 6d 6f 75 73 65 50 6f 73 69 74 69 6f 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d put.mousePosition;.............m
33c0 5f 4c 61 73 74 4d 6f 75 73 65 50 6f 73 69 74 69 6f 6e 20 3d 20 69 6e 70 75 74 2e 6d 6f 75 73 65 _LastMousePosition.=.input.mouse
33e0 50 6f 73 69 74 69 6f 6e 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 74 6f 53 65 6c Position;..............var.toSel
3400 65 63 74 20 3d 20 65 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 53 65 6c 65 63 74 65 ect.=.eventSystem.currentSelecte
3420 64 47 61 6d 65 4f 62 6a 65 63 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 6f 53 dGameObject;.............if.(toS
3440 65 6c 65 63 74 20 3d 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 elect.==.null).................t
3460 6f 53 65 6c 65 63 74 20 3d 20 65 76 65 6e 74 53 79 73 74 65 6d 2e 66 69 72 73 74 53 65 6c 65 63 oSelect.=.eventSystem.firstSelec
3480 74 65 64 47 61 6d 65 4f 62 6a 65 63 74 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 76 65 6e tedGameObject;..............even
34a0 74 53 79 73 74 65 6d 2e 53 65 74 53 65 6c 65 63 74 65 64 47 61 6d 65 4f 62 6a 65 63 74 28 74 6f tSystem.SetSelectedGameObject(to
34c0 53 65 6c 65 63 74 2c 20 47 65 74 42 61 73 65 45 76 65 6e 74 44 61 74 61 28 29 29 3b 0a 20 20 20 Select,.GetBaseEventData());....
34e0 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>...
3500 20 20 20 20 20 20 2f 2f 2f 20 53 65 65 20 42 61 73 65 49 6e 70 75 74 4d 6f 64 75 6c 65 2e 0a 20 ......///.See.BaseInputModule...
3520 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
3540 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 44 65 61 63 74 69 76 61 74 65 4d 6f 64 blic.override.void.DeactivateMod
3560 75 6c 65 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 62 61 73 65 ule().........{.............base
3580 2e 44 65 61 63 74 69 76 61 74 65 4d 6f 64 75 6c 65 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 .DeactivateModule();............
35a0 20 43 6c 65 61 72 53 65 6c 65 63 74 69 6f 6e 28 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 .ClearSelection();.........}....
35c0 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 50 72 6f 63 65 ......public.override.void.Proce
35e0 73 73 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 69 66 20 28 21 ss().........{.............if.(!
3600 65 76 65 6e 74 53 79 73 74 65 6d 2e 69 73 46 6f 63 75 73 65 64 20 26 26 20 53 68 6f 75 6c 64 49 eventSystem.isFocused.&&.ShouldI
3620 67 6e 6f 72 65 45 76 65 6e 74 73 4f 6e 4e 6f 46 6f 63 75 73 28 29 29 0a 20 20 20 20 20 20 20 20 gnoreEventsOnNoFocus()).........
3640 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 20 62 6f 6f ........return;..............boo
3660 6c 20 75 73 65 64 45 76 65 6e 74 20 3d 20 53 65 6e 64 55 70 64 61 74 65 45 76 65 6e 74 54 6f 53 l.usedEvent.=.SendUpdateEventToS
3680 65 6c 65 63 74 65 64 4f 62 6a 65 63 74 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f electedObject();..............//
36a0 20 63 61 73 65 20 31 30 30 34 30 36 36 20 2d 20 74 6f 75 63 68 20 2f 20 6d 6f 75 73 65 20 65 76 .case.1004066.-.touch./.mouse.ev
36c0 65 6e 74 73 20 73 68 6f 75 6c 64 20 62 65 20 70 72 6f 63 65 73 73 65 64 20 62 65 66 6f 72 65 20 ents.should.be.processed.before.
36e0 6e 61 76 69 67 61 74 69 6f 6e 20 65 76 65 6e 74 73 20 69 6e 20 63 61 73 65 0a 20 20 20 20 20 20 navigation.events.in.case.......
3700 20 20 20 20 20 20 2f 2f 20 74 68 65 79 20 63 68 61 6e 67 65 20 74 68 65 20 63 75 72 72 65 6e 74 ......//.they.change.the.current
3720 20 73 65 6c 65 63 74 65 64 20 67 61 6d 65 6f 62 6a 65 63 74 20 61 6e 64 20 74 68 65 20 73 75 62 .selected.gameobject.and.the.sub
3740 6d 69 74 20 62 75 74 74 6f 6e 20 69 73 20 61 20 74 6f 75 63 68 20 2f 20 6d 6f 75 73 65 20 62 75 mit.button.is.a.touch./.mouse.bu
3760 74 74 6f 6e 2e 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 74 6f 75 63 68 20 6e 65 65 64 tton...............//.touch.need
3780 73 20 74 6f 20 74 61 6b 65 20 70 72 65 63 65 64 65 6e 63 65 20 62 65 63 61 75 73 65 20 6f 66 20 s.to.take.precedence.because.of.
37a0 74 68 65 20 6d 6f 75 73 65 20 65 6d 75 6c 61 74 69 6f 6e 20 6c 61 79 65 72 0a 20 20 20 20 20 20 the.mouse.emulation.layer.......
37c0 20 20 20 20 20 20 69 66 20 28 21 50 72 6f 63 65 73 73 54 6f 75 63 68 45 76 65 6e 74 73 28 29 20 ......if.(!ProcessTouchEvents().
37e0 26 26 20 69 6e 70 75 74 2e 6d 6f 75 73 65 50 72 65 73 65 6e 74 29 0a 20 20 20 20 20 20 20 20 20 &&.input.mousePresent)..........
3800 20 20 20 20 20 20 20 50 72 6f 63 65 73 73 4d 6f 75 73 65 45 76 65 6e 74 28 29 3b 0a 0a 20 20 20 .......ProcessMouseEvent();.....
3820 20 20 20 20 20 20 20 20 20 69 66 20 28 65 76 65 6e 74 53 79 73 74 65 6d 2e 73 65 6e 64 4e 61 76 .........if.(eventSystem.sendNav
3840 69 67 61 74 69 6f 6e 45 76 65 6e 74 73 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 igationEvents).............{....
3860 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 75 73 65 64 45 76 65 6e 74 29 0a 20 20 20 .............if.(!usedEvent)....
3880 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 73 65 64 45 76 65 6e 74 20 7c 3d 20 53 65 .................usedEvent.|=.Se
38a0 6e 64 4d 6f 76 65 45 76 65 6e 74 54 6f 53 65 6c 65 63 74 65 64 4f 62 6a 65 63 74 28 29 3b 0a 0a ndMoveEventToSelectedObject();..
38c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 75 73 65 64 45 76 65 6e 74 29 0a ................if.(!usedEvent).
38e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 6e 64 53 75 62 6d 69 74 45 76 ....................SendSubmitEv
3900 65 6e 74 54 6f 53 65 6c 65 63 74 65 64 4f 62 6a 65 63 74 28 29 3b 0a 20 20 20 20 20 20 20 20 20 entToSelectedObject();..........
3920 20 20 20 7d 0a 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 ...}.........}..........private.
3940 62 6f 6f 6c 20 50 72 6f 63 65 73 73 54 6f 75 63 68 45 76 65 6e 74 73 28 29 0a 20 20 20 20 20 20 bool.ProcessTouchEvents().......
3960 20 20 7b 0a 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 ..{.............for.(int.i.=.0;.
3980 69 20 3c 20 69 6e 70 75 74 2e 74 6f 75 63 68 43 6f 75 6e 74 3b 20 2b 2b 69 29 0a 20 20 20 20 20 i.<.input.touchCount;.++i)......
39a0 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 54 6f 75 63 68 20 74 .......{.................Touch.t
39c0 6f 75 63 68 20 3d 20 69 6e 70 75 74 2e 47 65 74 54 6f 75 63 68 28 69 29 3b 0a 0a 20 20 20 20 20 ouch.=.input.GetTouch(i);.......
39e0 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 6f 75 63 68 2e 74 79 70 65 20 3d 3d 20 54 6f 75 ...........if.(touch.type.==.Tou
3a00 63 68 54 79 70 65 2e 49 6e 64 69 72 65 63 74 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 chType.Indirect)................
3a20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .....continue;..................
3a40 62 6f 6f 6c 20 72 65 6c 65 61 73 65 64 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 bool.released;.................b
3a60 6f 6f 6c 20 70 72 65 73 73 65 64 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 ool.pressed;.................var
3a80 20 70 6f 69 6e 74 65 72 20 3d 20 47 65 74 54 6f 75 63 68 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 .pointer.=.GetTouchPointerEventD
3aa0 61 74 61 28 74 6f 75 63 68 2c 20 6f 75 74 20 70 72 65 73 73 65 64 2c 20 6f 75 74 20 72 65 6c 65 ata(touch,.out.pressed,.out.rele
3ac0 61 73 65 64 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 50 72 6f 63 65 73 73 54 ased);..................ProcessT
3ae0 6f 75 63 68 50 72 65 73 73 28 70 6f 69 6e 74 65 72 2c 20 70 72 65 73 73 65 64 2c 20 72 65 6c 65 ouchPress(pointer,.pressed,.rele
3b00 61 73 65 64 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 72 65 6c ased);..................if.(!rel
3b20 65 61 73 65 64 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 eased).................{........
3b40 20 20 20 20 20 20 20 20 20 20 20 20 20 50 72 6f 63 65 73 73 4d 6f 76 65 28 70 6f 69 6e 74 65 72 .............ProcessMove(pointer
3b60 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 50 72 6f 63 65 73 73 44 72 );.....................ProcessDr
3b80 61 67 28 70 6f 69 6e 74 65 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 ag(pointer);.................}..
3ba0 20 20 20 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 ...............else.............
3bc0 20 20 20 20 20 20 20 20 52 65 6d 6f 76 65 50 6f 69 6e 74 65 72 44 61 74 61 28 70 6f 69 6e 74 65 ........RemovePointerData(pointe
3be0 72 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 20 20 72 65 r);.............}.............re
3c00 74 75 72 6e 20 69 6e 70 75 74 2e 74 6f 75 63 68 43 6f 75 6e 74 20 3e 20 30 3b 0a 20 20 20 20 20 turn.input.touchCount.>.0;......
3c20 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 20 20 ...}..........///.<summary>.....
3c40 20 20 20 20 2f 2f 2f 20 54 68 69 73 20 6d 65 74 68 6f 64 20 69 73 20 63 61 6c 6c 65 64 20 62 79 ....///.This.method.is.called.by
3c60 20 55 6e 69 74 79 20 77 68 65 6e 65 76 65 72 20 61 20 74 6f 75 63 68 20 65 76 65 6e 74 20 69 73 .Unity.whenever.a.touch.event.is
3c80 20 70 72 6f 63 65 73 73 65 64 2e 20 4f 76 65 72 72 69 64 65 20 74 68 69 73 20 6d 65 74 68 6f 64 .processed..Override.this.method
3ca0 20 77 69 74 68 20 61 20 63 75 73 74 6f 6d 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 74 6f .with.a.custom.implementation.to
3cc0 20 70 72 6f 63 65 73 73 20 74 6f 75 63 68 20 65 76 65 6e 74 73 20 79 6f 75 72 73 65 6c 66 2e 0a .process.touch.events.yourself..
3ce0 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 20 2f ........///.</summary>........./
3d00 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 70 6f 69 6e 74 65 72 45 76 65 6e 74 22 3e 45 76 //.<param.name="pointerEvent">Ev
3d20 65 6e 74 20 64 61 74 61 20 72 65 6c 61 74 69 6e 67 20 74 6f 20 74 68 65 20 74 6f 75 63 68 20 65 ent.data.relating.to.the.touch.e
3d40 76 65 6e 74 2c 20 73 75 63 68 20 61 73 20 70 6f 73 69 74 69 6f 6e 20 61 6e 64 20 49 44 20 74 6f vent,.such.as.position.and.ID.to
3d60 20 62 65 20 70 61 73 73 65 64 20 74 6f 20 74 68 65 20 74 6f 75 63 68 20 65 76 65 6e 74 20 64 65 .be.passed.to.the.touch.event.de
3d80 73 74 69 6e 61 74 69 6f 6e 20 6f 62 6a 65 63 74 2e 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 stination.object.</param>.......
3da0 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 70 72 65 73 73 65 64 22 3e 54 68 69 73 ..///.<param.name="pressed">This
3dc0 20 69 73 20 74 72 75 65 20 66 6f 72 20 74 68 65 20 66 69 72 73 74 20 66 72 61 6d 65 20 6f 66 20 .is.true.for.the.first.frame.of.
3de0 61 20 74 6f 75 63 68 20 65 76 65 6e 74 2c 20 61 6e 64 20 66 61 6c 73 65 20 74 68 65 72 65 61 66 a.touch.event,.and.false.thereaf
3e00 74 65 72 2e 20 54 68 69 73 20 63 61 6e 20 74 68 65 72 65 66 6f 72 65 20 62 65 20 75 73 65 64 20 ter..This.can.therefore.be.used.
3e20 74 6f 20 64 65 74 65 72 6d 69 6e 65 20 74 68 65 20 69 6e 73 74 61 6e 74 20 61 20 74 6f 75 63 68 to.determine.the.instant.a.touch
3e40 20 65 76 65 6e 74 20 6f 63 63 75 72 72 65 64 2e 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 20 20 .event.occurred.</param>........
3e60 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 72 65 6c 65 61 73 65 64 22 3e 54 68 69 73 .///.<param.name="released">This
3e80 20 69 73 20 74 72 75 65 20 6f 6e 6c 79 20 66 6f 72 20 74 68 65 20 6c 61 73 74 20 66 72 61 6d 65 .is.true.only.for.the.last.frame
3ea0 20 6f 66 20 61 20 74 6f 75 63 68 20 65 76 65 6e 74 2e 3c 2f 70 61 72 61 6d 3e 0a 20 20 20 20 20 .of.a.touch.event.</param>......
3ec0 20 20 20 2f 2f 2f 20 3c 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 69 ...///.<remarks>.........///.Thi
3ee0 73 20 6d 65 74 68 6f 64 20 63 61 6e 20 62 65 20 6f 76 65 72 72 69 64 64 65 6e 20 69 6e 20 64 65 s.method.can.be.overridden.in.de
3f00 72 69 76 65 64 20 63 6c 61 73 73 65 73 20 74 6f 20 63 68 61 6e 67 65 20 68 6f 77 20 74 6f 75 63 rived.classes.to.change.how.touc
3f20 68 20 70 72 65 73 73 20 65 76 65 6e 74 73 20 61 72 65 20 68 61 6e 64 6c 65 64 2e 0a 20 20 20 20 h.press.events.are.handled......
3f40 20 20 20 20 2f 2f 2f 20 3c 2f 72 65 6d 61 72 6b 73 3e 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 ....///.</remarks>.........prote
3f60 63 74 65 64 20 76 6f 69 64 20 50 72 6f 63 65 73 73 54 6f 75 63 68 50 72 65 73 73 28 50 6f 69 6e cted.void.ProcessTouchPress(Poin
3f80 74 65 72 45 76 65 6e 74 44 61 74 61 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2c 20 62 6f 6f 6c 20 terEventData.pointerEvent,.bool.
3fa0 70 72 65 73 73 65 64 2c 20 62 6f 6f 6c 20 72 65 6c 65 61 73 65 64 29 0a 20 20 20 20 20 20 20 20 pressed,.bool.released).........
3fc0 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 20 {.............var.currentOverGo.
3fe0 3d 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 43 75 72 72 65 6e 74 52 61 79 =.pointerEvent.pointerCurrentRay
4000 63 61 73 74 2e 67 61 6d 65 4f 62 6a 65 63 74 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f cast.gameObject;..............//
4020 20 50 6f 69 6e 74 65 72 44 6f 77 6e 20 6e 6f 74 69 66 69 63 61 74 69 6f 6e 0a 20 20 20 20 20 20 .PointerDown.notification.......
4040 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 20 7b ......if.(pressed).............{
4060 0a 20 20 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 65 6c .................pointerEvent.el
4080 69 67 69 62 6c 65 46 6f 72 43 6c 69 63 6b 20 3d 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 20 igibleForClick.=.true;..........
40a0 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 64 65 6c 74 61 20 3d 20 56 65 63 74 .......pointerEvent.delta.=.Vect
40c0 6f 72 32 2e 7a 65 72 6f 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 or2.zero;.................pointe
40e0 72 45 76 65 6e 74 2e 64 72 61 67 67 69 6e 67 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 rEvent.dragging.=.false;........
4100 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 75 73 65 44 72 61 67 54 68 72 .........pointerEvent.useDragThr
4120 65 73 68 6f 6c 64 20 3d 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 eshold.=.true;.................p
4140 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 20 3d 20 70 6f 69 6e ointerEvent.pressPosition.=.poin
4160 74 65 72 45 76 65 6e 74 2e 70 6f 73 69 74 69 6f 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 terEvent.position;..............
4180 20 20 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 50 72 65 73 73 52 61 79 63 ...pointerEvent.pointerPressRayc
41a0 61 73 74 20 3d 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 43 75 72 72 65 6e ast.=.pointerEvent.pointerCurren
41c0 74 52 61 79 63 61 73 74 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 65 73 65 6c tRaycast;..................Desel
41e0 65 63 74 49 66 53 65 6c 65 63 74 69 6f 6e 43 68 61 6e 67 65 64 28 63 75 72 72 65 6e 74 4f 76 65 ectIfSelectionChanged(currentOve
4200 72 47 6f 2c 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 rGo,.pointerEvent);.............
4220 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 45 6e 74 .....if.(pointerEvent.pointerEnt
4240 65 72 20 21 3d 20 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 29 0a 20 20 20 20 20 20 20 20 20 20 20 er.!=.currentOverGo)............
4260 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 2f 2f 20 73 65 .....{.....................//.se
4280 6e 64 20 61 20 70 6f 69 6e 74 65 72 20 65 6e 74 65 72 20 74 6f 20 74 68 65 20 74 6f 75 63 68 65 nd.a.pointer.enter.to.the.touche
42a0 64 20 65 6c 65 6d 65 6e 74 20 69 66 20 69 74 20 69 73 6e 27 74 20 74 68 65 20 6f 6e 65 20 74 6f d.element.if.it.isn't.the.one.to
42c0 20 73 65 6c 65 63 74 2e 2e 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 48 .select........................H
42e0 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 6e 74 65 72 andlePointerExitAndEnter(pointer
4300 45 76 65 6e 74 2c 20 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 29 3b 0a 20 20 20 20 20 20 20 20 20 Event,.currentOverGo);..........
4320 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 45 ...........pointerEvent.pointerE
4340 6e 74 65 72 20 3d 20 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 3b 0a 20 20 20 20 20 20 20 20 20 20 nter.=.currentOverGo;...........
4360 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 73 65 61 72 ......}..................//.sear
4380 63 68 20 66 6f 72 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 74 68 61 74 20 77 69 6c 6c 20 72 65 63 ch.for.the.control.that.will.rec
43a0 65 69 76 65 20 74 68 65 20 70 72 65 73 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f eive.the.press................./
43c0 2f 20 69 66 20 77 65 20 63 61 6e 27 74 20 66 69 6e 64 20 61 20 70 72 65 73 73 20 68 61 6e 64 6c /.if.we.can't.find.a.press.handl
43e0 65 72 20 73 65 74 20 74 68 65 20 70 72 65 73 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 er.set.the.press................
4400 20 2f 2f 20 68 61 6e 64 6c 65 72 20 74 6f 20 62 65 20 77 68 61 74 20 77 6f 75 6c 64 20 72 65 63 .//.handler.to.be.what.would.rec
4420 65 69 76 65 20 61 20 63 6c 69 63 6b 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 eive.a.click..................va
4440 72 20 6e 65 77 50 72 65 73 73 65 64 20 3d 20 45 78 65 63 75 74 65 45 76 65 6e 74 73 2e 45 78 65 r.newPressed.=.ExecuteEvents.Exe
4460 63 75 74 65 48 69 65 72 61 72 63 68 79 28 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 2c 20 70 6f 69 cuteHierarchy(currentOverGo,.poi
4480 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 70 6f 69 6e 74 65 72 nterEvent,.ExecuteEvents.pointer
44a0 44 6f 77 6e 48 61 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 2f DownHandler);................../
44c0 2f 20 64 69 64 6e 74 20 66 69 6e 64 20 61 20 70 72 65 73 73 20 68 61 6e 64 6c 65 72 2e 2e 2e 20 /.didnt.find.a.press.handler....
44e0 73 65 61 72 63 68 20 66 6f 72 20 61 20 63 6c 69 63 6b 20 68 61 6e 64 6c 65 72 0a 20 20 20 20 20 search.for.a.click.handler......
4500 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6e 65 77 50 72 65 73 73 65 64 20 3d 3d 20 6e 75 6c ...........if.(newPressed.==.nul
4520 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 77 50 72 65 73 73 65 l).....................newPresse
4540 64 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 61 6e 64 6c 65 d.=.ExecuteEvents.GetEventHandle
4560 72 3c 49 50 6f 69 6e 74 65 72 43 6c 69 63 6b 48 61 6e 64 6c 65 72 3e 28 63 75 72 72 65 6e 74 4f r<IPointerClickHandler>(currentO
4580 76 65 72 47 6f 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 65 62 75 verGo);..................//.Debu
45a0 67 2e 4c 6f 67 28 22 50 72 65 73 73 65 64 3a 20 22 20 2b 20 6e 65 77 50 72 65 73 73 65 64 29 3b g.Log("Pressed:.".+.newPressed);
45c0 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 74 69 6d 65 20 3d 20 54 ..................float.time.=.T
45e0 69 6d 65 2e 75 6e 73 63 61 6c 65 64 54 69 6d 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ime.unscaledTime;...............
4600 20 20 20 69 66 20 28 6e 65 77 50 72 65 73 73 65 64 20 3d 3d 20 70 6f 69 6e 74 65 72 45 76 65 6e ...if.(newPressed.==.pointerEven
4620 74 2e 6c 61 73 74 50 72 65 73 73 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 t.lastPress).................{..
4640 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 69 66 66 54 69 6d 65 20 ...................var.diffTime.
4660 3d 20 74 69 6d 65 20 2d 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 63 6c 69 63 6b 54 69 6d 65 3b =.time.-.pointerEvent.clickTime;
4680 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 64 69 66 66 54 69 6d .....................if.(diffTim
46a0 65 20 3c 20 30 2e 33 66 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 e.<.0.3f).......................
46c0 20 20 2b 2b 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 63 6c 69 63 6b 43 6f 75 6e 74 3b 0a 20 20 20 ..++pointerEvent.clickCount;....
46e0 20 20 20 20 20 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 .................else...........
4700 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 63 6c 69 63 6b ..............pointerEvent.click
4720 43 6f 75 6e 74 20 3d 20 31 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Count.=.1;......................
4740 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 63 6c 69 63 6b 54 69 6d 65 20 3d 20 74 69 6d 65 3b 0a 20 pointerEvent.clickTime.=.time;..
4760 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 20 ...............}................
4780 20 65 6c 73 65 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 .else.................{.........
47a0 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 63 6c 69 63 6b 43 6f ............pointerEvent.clickCo
47c0 75 6e 74 20 3d 20 31 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 unt.=.1;.................}......
47e0 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 70 6f 69 6e 74 65 72 ............pointerEvent.pointer
4800 50 72 65 73 73 20 3d 20 6e 65 77 50 72 65 73 73 65 64 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 Press.=.newPressed;.............
4820 20 20 20 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 72 61 77 50 6f 69 6e 74 65 72 50 72 65 73 73 ....pointerEvent.rawPointerPress
4840 20 3d 20 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 .=.currentOverGo;...............
4860 20 20 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 63 6c 69 63 6b 54 69 6d 65 20 3d 20 74 69 6d 65 ...pointerEvent.clickTime.=.time
4880 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 61 76 65 20 74 68 65 20 64 ;..................//.Save.the.d
48a0 72 61 67 20 68 61 6e 64 6c 65 72 20 61 73 20 77 65 6c 6c 0a 20 20 20 20 20 20 20 20 20 20 20 20 rag.handler.as.well.............
48c0 20 20 20 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 20 3d 20 45 ....pointerEvent.pointerDrag.=.E
48e0 78 65 63 75 74 65 45 76 65 6e 74 73 2e 47 65 74 45 76 65 6e 74 48 61 6e 64 6c 65 72 3c 49 44 72 xecuteEvents.GetEventHandler<IDr
4900 61 67 48 61 6e 64 6c 65 72 3e 28 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 29 3b 0a 0a 20 20 20 20 agHandler>(currentOverGo);......
4920 20 20 20 20 20 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 ............if.(pointerEvent.poi
4940 6e 74 65 72 44 72 61 67 20 21 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 nterDrag.!=.null)...............
4960 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 69 6e ......ExecuteEvents.Execute(poin
4980 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 44 72 61 67 2c 20 70 6f 69 6e 74 65 72 45 76 65 terEvent.pointerDrag,.pointerEve
49a0 6e 74 2c 20 45 78 65 63 75 74 65 45 76 65 6e 74 73 2e 69 6e 69 74 69 61 6c 69 7a 65 50 6f 74 65 nt,.ExecuteEvents.initializePote
49c0 6e 74 69 61 6c 44 72 61 67 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 ntialDrag);..................m_I
49e0 6e 70 75 74 50 6f 69 6e 74 65 72 45 76 65 6e 74 20 3d 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 3b nputPointerEvent.=.pointerEvent;
4a00 0a 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 2f 2f 20 50 .............}..............//.P
4a20 6f 69 6e 74 65 72 55 70 20 6e 6f 74 69 66 69 63 61 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 20 20 ointerUp.notification...........
4a40 20 20 69 66 20 28 72 65 6c 65 61 73 65 64 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 ..if.(released).............{...
4a60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 65 62 75 67 2e 4c 6f 67 28 22 45 78 65 63 ..............//.Debug.Log("Exec
4a80 75 74 69 6e 67 20 70 72 65 73 73 75 70 20 6f 6e 3a 20 22 20 2b 20 70 6f 69 6e 74 65 72 2e 70 6f uting.pressup.on:.".+.pointer.po
4aa0 69 6e 74 65 72 50 72 65 73 73 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 78 65 interPress);.................Exe
4ac0 63 75 74 65 45 76 65 6e 74 73 2e 45 78 65 63 75 74 65 28 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e cuteEvents.Execute(pointerEvent.
4ae0 70 6f 69 6e 74 65 72 50 72 65 73 73 2c 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2c 20 45 78 65 63 pointerPress,.pointerEvent,.Exec
4b00 75 74 65 45 76 65 6e 74 73 2e 70 6f 69 6e 74 65 72 55 70 48 61 6e 64 6c 65 72 29 3b 0a 0a 20 20 uteEvents.pointerUpHandler);....
4b20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 65 62 75 67 2e 4c 6f 67 28 22 4b 65 79 43 ..............//.Debug.Log("KeyC
4b40 6f 64 65 3a 20 22 20 2b 20 70 6f 69 6e 74 65 72 2e 65 76 65 6e 74 44 61 74 61 2e 6b 65 79 43 6f ode:.".+.pointer.eventData.keyCo
4b60 64 65 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 73 65 65 20 69 66 20 de);..................//.see.if.
4b80 77 65 20 6d 6f 75 73 65 20 75 70 20 6f 6e 20 74 68 65 20 73 61 6d 65 20 65 6c 65 6d 65 6e 74 20 we.mouse.up.on.the.same.element.
4ba0 74 68 61 74 20 77 65 20 63 6c 69 63 6b 65 64 20 6f 6e 2e 2e 2e 0a 20 20 20 20 20 20 20 20 20 20 that.we.clicked.on..............
4bc0 20 20 20 20 20 20 76 61 72 20 70 6f 69 6e 74 65 72 55 70 48 61 6e 64 6c 65 72 20 3d 20 45 78 65 ......var.pointerUpHandler.=.Exe
4be0 63 75 74 65 45 76 65 6e 74 73 2e 47 65 74 45 76 65 6e 74 48 61 6e 64 6c 65 72 3c 49 50 6f 69 6e cuteEvents.GetEventHandler<IPoin
4c00 74 65 72 43 6c 69 63 6b 48 61 6e 64 6c 65 72 3e 28 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 29 3b terClickHandler>(currentOverGo);
4c20 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 50 6f 69 6e 74 65 72 43 6c 69 63 ..................//.PointerClic
4c40 6b 20 61 6e 64 20 44 72 6f 70 20 65 76 65 6e 74 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 k.and.Drop.events...............
4c60 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 72 65 73 73 20 ..if.(pointerEvent.pointerPress.
4c80 3d 3d 20 70 6f 69 6e 74 65 72 55 70 48 61 6e 64 6c 65 72 20 26 26 20 70 6f 69 6e 74 65 72 45 76 ==.pointerUpHandler.&&.pointerEv
4ca0 65 6e 74 2e 65 6c 69 67 69 62 6c 65 46 6f 72 43 6c 69 63 6b 29 0a 20 20 20 20 20 20 20 20 20 20 ent.eligibleForClick)...........
4cc0 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 45 78 65 63 ......{.....................Exec
4ce0 75 74 65 45 76 65 6e 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 uteEvents.Execute(pointerEvent.p
4d00 6f 69 6e 74 65 72 50 72 65 73 73 2c 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2c 20 45 78 65 63 75 ointerPress,.pointerEvent,.Execu
4d20 74 65 45 76 65 6e 74 73 2e 70 6f 69 6e 74 65 72 43 6c 69 63 6b 48 61 6e 64 6c 65 72 29 3b 0a 20 teEvents.pointerClickHandler);..
4d40 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 20 ...............}................
4d60 20 65 6c 73 65 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 44 72 .else.if.(pointerEvent.pointerDr
4d80 61 67 20 21 3d 20 6e 75 6c 6c 20 26 26 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 64 72 61 67 67 ag.!=.null.&&.pointerEvent.dragg
4da0 69 6e 67 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 ing).................{..........
4dc0 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 65 63 75 74 65 ...........ExecuteEvents.Execute
4de0 48 69 65 72 61 72 63 68 79 28 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 2c 20 70 6f 69 6e 74 65 72 Hierarchy(currentOverGo,.pointer
4e00 45 76 65 6e 74 2c 20 45 78 65 63 75 74 65 45 76 65 6e 74 73 2e 64 72 6f 70 48 61 6e 64 6c 65 72 Event,.ExecuteEvents.dropHandler
4e20 29 3b 0a 20 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 );.................}............
4e40 20 20 20 20 20 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 65 6c 69 67 69 62 6c 65 46 6f 72 43 6c ......pointerEvent.eligibleForCl
4e60 69 63 6b 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 ick.=.false;.................poi
4e80 6e 74 65 72 45 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 nterEvent.pointerPress.=.null;..
4ea0 20 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 ...............pointerEvent.rawP
4ec0 6f 69 6e 74 65 72 50 72 65 73 73 20 3d 20 6e 75 6c 6c 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 ointerPress.=.null;.............
4ee0 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 44 72 61 .....if.(pointerEvent.pointerDra
4f00 67 20 21 3d 20 6e 75 6c 6c 20 26 26 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 64 72 61 67 67 69 g.!=.null.&&.pointerEvent.draggi
4f20 6e 67 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 78 65 63 75 74 65 45 ng).....................ExecuteE
4f40 76 65 6e 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 vents.Execute(pointerEvent.point
4f60 65 72 44 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 erDrag,.pointerEvent,.ExecuteEve
4f80 6e 74 73 2e 65 6e 64 44 72 61 67 48 61 6e 64 6c 65 72 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 nts.endDragHandler);............
4fa0 20 20 20 20 20 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 64 72 61 67 67 69 6e 67 20 3d 20 66 61 ......pointerEvent.dragging.=.fa
4fc0 6c 73 65 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 45 76 65 6e lse;.................pointerEven
4fe0 74 2e 70 6f 69 6e 74 65 72 44 72 61 67 20 3d 20 6e 75 6c 6c 3b 0a 0a 20 20 20 20 20 20 20 20 20 t.pointerDrag.=.null;...........
5000 20 20 20 20 20 20 20 2f 2f 20 73 65 6e 64 20 65 78 69 74 20 65 76 65 6e 74 73 20 61 73 20 77 65 .......//.send.exit.events.as.we
5020 20 6e 65 65 64 20 74 6f 20 73 69 6d 75 6c 61 74 65 20 74 68 69 73 20 6f 6e 20 74 6f 75 63 68 20 .need.to.simulate.this.on.touch.
5040 75 70 20 6f 6e 20 74 6f 75 63 68 20 64 65 76 69 63 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 up.on.touch.device..............
5060 20 20 20 45 78 65 63 75 74 65 45 76 65 6e 74 73 2e 45 78 65 63 75 74 65 48 69 65 72 61 72 63 68 ...ExecuteEvents.ExecuteHierarch
5080 79 28 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 45 6e 74 65 72 2c 20 70 6f 69 y(pointerEvent.pointerEnter,.poi
50a0 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 70 6f 69 6e 74 65 72 nterEvent,.ExecuteEvents.pointer
50c0 45 78 69 74 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 6f ExitHandler);.................po
50e0 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 45 6e 74 65 72 20 3d 20 6e 75 6c 6c 3b 0a interEvent.pointerEnter.=.null;.
5100 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 49 6e 70 75 74 50 6f 69 6e 74 65 72 45 .................m_InputPointerE
5120 76 65 6e 74 20 3d 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 vent.=.pointerEvent;............
5140 20 7d 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 .}.........}..........///.<summa
5160 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 43 61 6c 63 75 6c 61 74 65 20 61 6e 64 20 73 65 ry>.........///.Calculate.and.se
5180 6e 64 20 61 20 73 75 62 6d 69 74 20 65 76 65 6e 74 20 74 6f 20 74 68 65 20 63 75 72 72 65 6e 74 nd.a.submit.event.to.the.current
51a0 20 73 65 6c 65 63 74 65 64 20 6f 62 6a 65 63 74 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f .selected.object..........///.</
51c0 73 75 6d 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 49 66 summary>.........///.<returns>If
51e0 20 74 68 65 20 73 75 62 6d 69 74 20 65 76 65 6e 74 20 77 61 73 20 75 73 65 64 20 62 79 20 74 68 .the.submit.event.was.used.by.th
5200 65 20 73 65 6c 65 63 74 65 64 20 6f 62 6a 65 63 74 2e 3c 2f 72 65 74 75 72 6e 73 3e 0a 20 20 20 e.selected.object.</returns>....
5220 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 62 6f 6f 6c 20 53 65 6e 64 53 75 62 6d 69 74 45 76 .....protected.bool.SendSubmitEv
5240 65 6e 74 54 6f 53 65 6c 65 63 74 65 64 4f 62 6a 65 63 74 28 29 0a 20 20 20 20 20 20 20 20 7b 0a entToSelectedObject().........{.
5260 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 65 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 ............if.(eventSystem.curr
5280 65 6e 74 53 65 6c 65 63 74 65 64 47 61 6d 65 4f 62 6a 65 63 74 20 3d 3d 20 6e 75 6c 6c 29 0a 20 entSelectedGameObject.==.null)..
52a0 20 20 20 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 0a 20 20 ...............return.false;....
52c0 20 20 20 20 20 20 20 20 20 20 76 61 72 20 64 61 74 61 20 3d 20 47 65 74 42 61 73 65 45 76 65 6e ..........var.data.=.GetBaseEven
52e0 74 44 61 74 61 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 70 75 74 2e 47 tData();.............if.(input.G
5300 65 74 42 75 74 74 6f 6e 44 6f 77 6e 28 6d 5f 53 75 62 6d 69 74 42 75 74 74 6f 6e 29 29 0a 20 20 etButtonDown(m_SubmitButton))...
5320 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 65 63 ..............ExecuteEvents.Exec
5340 75 74 65 28 65 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 53 65 6c 65 63 74 65 64 47 ute(eventSystem.currentSelectedG
5360 61 6d 65 4f 62 6a 65 63 74 2c 20 64 61 74 61 2c 20 45 78 65 63 75 74 65 45 76 65 6e 74 73 2e 73 ameObject,.data,.ExecuteEvents.s
5380 75 62 6d 69 74 48 61 6e 64 6c 65 72 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 ubmitHandler);..............if.(
53a0 69 6e 70 75 74 2e 47 65 74 42 75 74 74 6f 6e 44 6f 77 6e 28 6d 5f 43 61 6e 63 65 6c 42 75 74 74 input.GetButtonDown(m_CancelButt
53c0 6f 6e 29 29 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 on)).................ExecuteEven
53e0 74 73 2e 45 78 65 63 75 74 65 28 65 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 53 65 ts.Execute(eventSystem.currentSe
5400 6c 65 63 74 65 64 47 61 6d 65 4f 62 6a 65 63 74 2c 20 64 61 74 61 2c 20 45 78 65 63 75 74 65 45 lectedGameObject,.data,.ExecuteE
5420 76 65 6e 74 73 2e 63 61 6e 63 65 6c 48 61 6e 64 6c 65 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 vents.cancelHandler);...........
5440 20 20 72 65 74 75 72 6e 20 64 61 74 61 2e 75 73 65 64 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 ..return.data.used;.........}...
5460 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 56 65 63 74 6f 72 32 20 47 65 74 52 61 77 4d 6f 76 .......private.Vector2.GetRawMov
5480 65 56 65 63 74 6f 72 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 eVector().........{.............
54a0 56 65 63 74 6f 72 32 20 6d 6f 76 65 20 3d 20 56 65 63 74 6f 72 32 2e 7a 65 72 6f 3b 0a 20 20 20 Vector2.move.=.Vector2.zero;....
54c0 20 20 20 20 20 20 20 20 20 6d 6f 76 65 2e 78 20 3d 20 69 6e 70 75 74 2e 47 65 74 41 78 69 73 52 .........move.x.=.input.GetAxisR
54e0 61 77 28 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 41 78 69 73 29 3b 0a 20 20 20 20 20 20 20 20 20 20 aw(m_HorizontalAxis);...........
5500 20 20 6d 6f 76 65 2e 79 20 3d 20 69 6e 70 75 74 2e 47 65 74 41 78 69 73 52 61 77 28 6d 5f 56 65 ..move.y.=.input.GetAxisRaw(m_Ve
5520 72 74 69 63 61 6c 41 78 69 73 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e rticalAxis);..............if.(in
5540 70 75 74 2e 47 65 74 42 75 74 74 6f 6e 44 6f 77 6e 28 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 41 78 put.GetButtonDown(m_HorizontalAx
5560 69 73 29 29 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 is)).............{..............
5580 20 20 20 69 66 20 28 6d 6f 76 65 2e 78 20 3c 20 30 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ...if.(move.x.<.0)..............
55a0 20 20 20 20 20 20 20 6d 6f 76 65 2e 78 20 3d 20 2d 31 66 3b 0a 20 20 20 20 20 20 20 20 20 20 20 .......move.x.=.-1f;............
55c0 20 20 20 20 20 69 66 20 28 6d 6f 76 65 2e 78 20 3e 20 30 29 0a 20 20 20 20 20 20 20 20 20 20 20 .....if.(move.x.>.0)............
55e0 20 20 20 20 20 20 20 20 20 6d 6f 76 65 2e 78 20 3d 20 31 66 3b 0a 20 20 20 20 20 20 20 20 20 20 .........move.x.=.1f;...........
5600 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 70 75 74 2e 47 65 74 42 75 74 ..}.............if.(input.GetBut
5620 74 6f 6e 44 6f 77 6e 28 6d 5f 56 65 72 74 69 63 61 6c 41 78 69 73 29 29 0a 20 20 20 20 20 20 20 tonDown(m_VerticalAxis))........
5640 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 6f 76 65 2e .....{.................if.(move.
5660 79 20 3c 20 30 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 6f 76 65 2e y.<.0).....................move.
5680 79 20 3d 20 2d 31 66 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 6f 76 y.=.-1f;.................if.(mov
56a0 65 2e 79 20 3e 20 30 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 6f 76 e.y.>.0).....................mov
56c0 65 2e 79 20 3d 20 31 66 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 e.y.=.1f;.............}.........
56e0 20 20 20 20 72 65 74 75 72 6e 20 6d 6f 76 65 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 ....return.move;.........}......
5700 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 43 61 ....///.<summary>.........///.Ca
5720 6c 63 75 6c 61 74 65 20 61 6e 64 20 73 65 6e 64 20 61 20 6d 6f 76 65 20 65 76 65 6e 74 20 74 6f lculate.and.send.a.move.event.to
5740 20 74 68 65 20 63 75 72 72 65 6e 74 20 73 65 6c 65 63 74 65 64 20 6f 62 6a 65 63 74 2e 0a 20 20 .the.current.selected.object....
5760 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 2f ......///.</summary>.........///
5780 20 3c 72 65 74 75 72 6e 73 3e 49 66 20 74 68 65 20 6d 6f 76 65 20 65 76 65 6e 74 20 77 61 73 20 .<returns>If.the.move.event.was.
57a0 75 73 65 64 20 62 79 20 74 68 65 20 73 65 6c 65 63 74 65 64 20 6f 62 6a 65 63 74 2e 3c 2f 72 65 used.by.the.selected.object.</re
57c0 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 62 6f 6f 6c 20 53 65 turns>.........protected.bool.Se
57e0 6e 64 4d 6f 76 65 45 76 65 6e 74 54 6f 53 65 6c 65 63 74 65 64 4f 62 6a 65 63 74 28 29 0a 20 20 ndMoveEventToSelectedObject()...
5800 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 74 69 6d 65 20 3d ......{.............float.time.=
5820 20 54 69 6d 65 2e 75 6e 73 63 61 6c 65 64 54 69 6d 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 .Time.unscaledTime;.............
5840 20 56 65 63 74 6f 72 32 20 6d 6f 76 65 6d 65 6e 74 20 3d 20 47 65 74 52 61 77 4d 6f 76 65 56 65 .Vector2.movement.=.GetRawMoveVe
5860 63 74 6f 72 28 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 4d 61 74 68 66 2e 41 70 ctor();.............if.(Mathf.Ap
5880 70 72 6f 78 69 6d 61 74 65 6c 79 28 6d 6f 76 65 6d 65 6e 74 2e 78 2c 20 30 66 29 20 26 26 20 4d proximately(movement.x,.0f).&&.M
58a0 61 74 68 66 2e 41 70 70 72 6f 78 69 6d 61 74 65 6c 79 28 6d 6f 76 65 6d 65 6e 74 2e 79 2c 20 30 athf.Approximately(movement.y,.0
58c0 66 29 29 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 f)).............{...............
58e0 20 20 6d 5f 43 6f 6e 73 65 63 75 74 69 76 65 4d 6f 76 65 43 6f 75 6e 74 20 3d 20 30 3b 0a 20 20 ..m_ConsecutiveMoveCount.=.0;...
5900 20 20 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 20 20 20 20 ..............return.false;.....
5920 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 73 69 6d 69 ........}..............bool.simi
5940 6c 61 72 44 69 72 20 3d 20 28 56 65 63 74 6f 72 32 2e 44 6f 74 28 6d 6f 76 65 6d 65 6e 74 2c 20 larDir.=.(Vector2.Dot(movement,.
5960 6d 5f 4c 61 73 74 4d 6f 76 65 56 65 63 74 6f 72 29 20 3e 20 30 29 3b 0a 0a 20 20 20 20 20 20 20 m_LastMoveVector).>.0);.........
5980 20 20 20 20 20 2f 2f 20 49 66 20 64 69 72 65 63 74 69 6f 6e 20 64 69 64 6e 27 74 20 63 68 61 6e .....//.If.direction.didn't.chan
59a0 67 65 20 61 74 20 6c 65 61 73 74 20 39 30 20 64 65 67 72 65 65 73 2c 20 77 61 69 74 20 66 6f 72 ge.at.least.90.degrees,.wait.for
59c0 20 64 65 6c 61 79 20 62 65 66 6f 72 65 20 61 6c 6c 6f 77 69 6e 67 20 63 6f 6e 73 65 71 75 74 69 .delay.before.allowing.consequti
59e0 76 65 20 65 76 65 6e 74 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 69 6d 69 6c 61 ve.event..............if.(simila
5a00 72 44 69 72 20 26 26 20 6d 5f 43 6f 6e 73 65 63 75 74 69 76 65 4d 6f 76 65 43 6f 75 6e 74 20 3d rDir.&&.m_ConsecutiveMoveCount.=
5a20 3d 20 31 29 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 =.1).............{..............
5a40 20 20 20 69 66 20 28 74 69 6d 65 20 3c 3d 20 6d 5f 50 72 65 76 41 63 74 69 6f 6e 54 69 6d 65 20 ...if.(time.<=.m_PrevActionTime.
5a60 2b 20 6d 5f 52 65 70 65 61 74 44 65 6c 61 79 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 +.m_RepeatDelay)................
5a80 20 20 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 .....return.false;.............}
5aa0 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 49 66 20 64 69 72 65 63 74 69 6f 6e 20 63 68 61 .............//.If.direction.cha
5ac0 6e 67 65 64 20 61 74 20 6c 65 61 73 74 20 39 30 20 64 65 67 72 65 65 2c 20 6f 72 20 77 65 20 61 nged.at.least.90.degree,.or.we.a
5ae0 6c 72 65 61 64 79 20 68 61 64 20 74 68 65 20 64 65 6c 61 79 2c 20 72 65 70 65 61 74 20 61 74 20 lready.had.the.delay,.repeat.at.
5b00 72 65 70 65 61 74 20 72 61 74 65 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0a 20 20 repeat.rate..............else...
5b20 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 69 66 20 28 ..........{.................if.(
5b40 74 69 6d 65 20 3c 3d 20 6d 5f 50 72 65 76 41 63 74 69 6f 6e 54 69 6d 65 20 2b 20 31 66 20 2f 20 time.<=.m_PrevActionTime.+.1f./.
5b60 6d 5f 49 6e 70 75 74 41 63 74 69 6f 6e 73 50 65 72 53 65 63 6f 6e 64 29 0a 20 20 20 20 20 20 20 m_InputActionsPerSecond)........
5b80 20 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 20 20 20 20 20 .............return.false;......
5ba0 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 78 69 73 45 76 .......}..............var.axisEv
5bc0 65 6e 74 44 61 74 61 20 3d 20 47 65 74 41 78 69 73 45 76 65 6e 74 44 61 74 61 28 6d 6f 76 65 6d entData.=.GetAxisEventData(movem
5be0 65 6e 74 2e 78 2c 20 6d 6f 76 65 6d 65 6e 74 2e 79 2c 20 30 2e 36 66 29 3b 0a 0a 20 20 20 20 20 ent.x,.movement.y,.0.6f);.......
5c00 20 20 20 20 20 20 20 69 66 20 28 61 78 69 73 45 76 65 6e 74 44 61 74 61 2e 6d 6f 76 65 44 69 72 .......if.(axisEventData.moveDir
5c20 20 21 3d 20 4d 6f 76 65 44 69 72 65 63 74 69 6f 6e 2e 4e 6f 6e 65 29 0a 20 20 20 20 20 20 20 20 .!=.MoveDirection.None).........
5c40 20 20 20 20 7b 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 ....{.................ExecuteEve
5c60 6e 74 73 2e 45 78 65 63 75 74 65 28 65 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 53 nts.Execute(eventSystem.currentS
5c80 65 6c 65 63 74 65 64 47 61 6d 65 4f 62 6a 65 63 74 2c 20 61 78 69 73 45 76 65 6e 74 44 61 74 61 electedGameObject,.axisEventData
5ca0 2c 20 45 78 65 63 75 74 65 45 76 65 6e 74 73 2e 6d 6f 76 65 48 61 6e 64 6c 65 72 29 3b 0a 20 20 ,.ExecuteEvents.moveHandler);...
5cc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 73 69 6d 69 6c 61 72 44 69 72 29 0a 20 ..............if.(!similarDir)..
5ce0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 73 65 63 75 74 69 76 65 ...................m_Consecutive
5d00 4d 6f 76 65 43 6f 75 6e 74 20 3d 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d MoveCount.=.0;.................m
5d20 5f 43 6f 6e 73 65 63 75 74 69 76 65 4d 6f 76 65 43 6f 75 6e 74 2b 2b 3b 0a 20 20 20 20 20 20 20 _ConsecutiveMoveCount++;........
5d40 20 20 20 20 20 20 20 20 20 6d 5f 50 72 65 76 41 63 74 69 6f 6e 54 69 6d 65 20 3d 20 74 69 6d 65 .........m_PrevActionTime.=.time
5d60 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4c 61 73 74 4d 6f 76 65 56 65 63 74 ;.................m_LastMoveVect
5d80 6f 72 20 3d 20 6d 6f 76 65 6d 65 6e 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 or.=.movement;.............}....
5da0 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 20 20 20 .........else.............{.....
5dc0 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 6f 6e 73 65 63 75 74 69 76 65 4d 6f 76 65 43 6f 75 ............m_ConsecutiveMoveCou
5de0 6e 74 20 3d 20 30 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 nt.=.0;.............}...........
5e00 20 20 20 72 65 74 75 72 6e 20 61 78 69 73 45 76 65 6e 74 44 61 74 61 2e 75 73 65 64 3b 0a 20 20 ...return.axisEventData.used;...
5e20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 76 6f 69 64 20 ......}..........protected.void.
5e40 50 72 6f 63 65 73 73 4d 6f 75 73 65 45 76 65 6e 74 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 ProcessMouseEvent().........{...
5e60 20 20 20 20 20 20 20 20 20 20 50 72 6f 63 65 73 73 4d 6f 75 73 65 45 76 65 6e 74 28 30 29 3b 0a ..........ProcessMouseEvent(0);.
5e80 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 5b 4f 62 73 6f 6c 65 74 65 28 22 54 68 ........}..........[Obsolete("Th
5ea0 69 73 20 6d 65 74 68 6f 64 20 69 73 20 6e 6f 20 6c 6f 6e 67 65 72 20 63 68 65 63 6b 65 64 2c 20 is.method.is.no.longer.checked,.
5ec0 6f 76 65 72 72 69 64 69 6e 67 20 69 74 20 77 69 74 68 20 72 65 74 75 72 6e 20 74 72 75 65 20 64 overriding.it.with.return.true.d
5ee0 6f 65 73 20 6e 6f 74 68 69 6e 67 21 22 29 5d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 oes.nothing!")].........protecte
5f00 64 20 76 69 72 74 75 61 6c 20 62 6f 6f 6c 20 46 6f 72 63 65 41 75 74 6f 53 65 6c 65 63 74 28 29 d.virtual.bool.ForceAutoSelect()
5f20 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 .........{.............return.fa
5f40 6c 73 65 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 lse;.........}..........///.<sum
5f60 6d 61 72 79 3e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 50 72 6f 63 65 73 73 20 61 6c 6c 20 6d 6f mary>.........///.Process.all.mo
5f80 75 73 65 20 65 76 65 6e 74 73 2e 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 use.events..........///.</summar
5fa0 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 20 50 72 6f 63 65 73 y>.........protected.void.Proces
5fc0 73 4d 6f 75 73 65 45 76 65 6e 74 28 69 6e 74 20 69 64 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 sMouseEvent(int.id).........{...
5fe0 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d 6f 75 73 65 44 61 74 61 20 3d 20 47 65 74 4d 6f 75 ..........var.mouseData.=.GetMou
6000 73 65 50 6f 69 6e 74 65 72 45 76 65 6e 74 44 61 74 61 28 69 64 29 3b 0a 20 20 20 20 20 20 20 20 sePointerEventData(id);.........
6020 20 20 20 20 76 61 72 20 6c 65 66 74 42 75 74 74 6f 6e 44 61 74 61 20 3d 20 6d 6f 75 73 65 44 61 ....var.leftButtonData.=.mouseDa
6040 74 61 2e 47 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 ta.GetButtonState(PointerEventDa
6060 74 61 2e 49 6e 70 75 74 42 75 74 74 6f 6e 2e 4c 65 66 74 29 2e 65 76 65 6e 74 44 61 74 61 3b 0a ta.InputButton.Left).eventData;.
6080 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 75 72 72 65 6e 74 46 6f 63 75 73 65 64 47 61 6d .............m_CurrentFocusedGam
60a0 65 4f 62 6a 65 63 74 20 3d 20 6c 65 66 74 42 75 74 74 6f 6e 44 61 74 61 2e 62 75 74 74 6f 6e 44 eObject.=.leftButtonData.buttonD
60c0 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 2e 67 61 6d 65 4f 62 ata.pointerCurrentRaycast.gameOb
60e0 6a 65 63 74 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 50 72 6f 63 65 73 73 20 74 68 ject;..............//.Process.th
6100 65 20 66 69 72 73 74 20 6d 6f 75 73 65 20 62 75 74 74 6f 6e 20 66 75 6c 6c 79 0a 20 20 20 20 20 e.first.mouse.button.fully......
6120 20 20 20 20 20 20 20 50 72 6f 63 65 73 73 4d 6f 75 73 65 50 72 65 73 73 28 6c 65 66 74 42 75 74 .......ProcessMousePress(leftBut
6140 74 6f 6e 44 61 74 61 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 50 72 6f 63 65 73 73 4d 6f 76 tonData);.............ProcessMov
6160 65 28 6c 65 66 74 42 75 74 74 6f 6e 44 61 74 61 2e 62 75 74 74 6f 6e 44 61 74 61 29 3b 0a 20 20 e(leftButtonData.buttonData);...
6180 20 20 20 20 20 20 20 20 20 20 50 72 6f 63 65 73 73 44 72 61 67 28 6c 65 66 74 42 75 74 74 6f 6e ..........ProcessDrag(leftButton
61a0 44 61 74 61 2e 62 75 74 74 6f 6e 44 61 74 61 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f Data.buttonData);............../
61c0 2f 20 4e 6f 77 20 70 72 6f 63 65 73 73 20 72 69 67 68 74 20 2f 20 6d 69 64 64 6c 65 20 63 6c 69 /.Now.process.right./.middle.cli
61e0 63 6b 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 50 72 6f 63 65 73 73 4d 6f 75 73 65 50 72 65 73 cks.............ProcessMousePres
6200 73 28 6d 6f 75 73 65 44 61 74 61 2e 47 65 74 42 75 74 74 6f 6e 53 74 61 74 65 28 50 6f 69 6e 74 s(mouseData.GetButtonState(Point
6220 65 72 45 76 65 6e 74 44 61 74 61 2e 49 6e 70 75 74 42 75 74 74 6f 6e 2e 52 69 67 68 74 29 2e 65 erEventData.InputButton.Right).e
6240 76 65 6e 74 44 61 74 61 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 50 72 6f 63 65 73 73 44 72 ventData);.............ProcessDr
6260 61 67 28 6d 6f 75 73 65 44 61 74 61 2e 47 65 74 42 75 74 74 6f 6e 53 74 61 74 65 28 50 6f 69 6e ag(mouseData.GetButtonState(Poin
6280 74 65 72 45 76 65 6e 74 44 61 74 61 2e 49 6e 70 75 74 42 75 74 74 6f 6e 2e 52 69 67 68 74 29 2e terEventData.InputButton.Right).
62a0 65 76 65 6e 74 44 61 74 61 2e 62 75 74 74 6f 6e 44 61 74 61 29 3b 0a 20 20 20 20 20 20 20 20 20 eventData.buttonData);..........
62c0 20 20 20 50 72 6f 63 65 73 73 4d 6f 75 73 65 50 72 65 73 73 28 6d 6f 75 73 65 44 61 74 61 2e 47 ...ProcessMousePress(mouseData.G
62e0 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 49 etButtonState(PointerEventData.I
6300 6e 70 75 74 42 75 74 74 6f 6e 2e 4d 69 64 64 6c 65 29 2e 65 76 65 6e 74 44 61 74 61 29 3b 0a 20 nputButton.Middle).eventData);..
6320 20 20 20 20 20 20 20 20 20 20 20 50 72 6f 63 65 73 73 44 72 61 67 28 6d 6f 75 73 65 44 61 74 61 ...........ProcessDrag(mouseData
6340 2e 47 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 .GetButtonState(PointerEventData
6360 2e 49 6e 70 75 74 42 75 74 74 6f 6e 2e 4d 69 64 64 6c 65 29 2e 65 76 65 6e 74 44 61 74 61 2e 62 .InputButton.Middle).eventData.b
6380 75 74 74 6f 6e 44 61 74 61 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 4d 61 uttonData);..............if.(!Ma
63a0 74 68 66 2e 41 70 70 72 6f 78 69 6d 61 74 65 6c 79 28 6c 65 66 74 42 75 74 74 6f 6e 44 61 74 61 thf.Approximately(leftButtonData
63c0 2e 62 75 74 74 6f 6e 44 61 74 61 2e 73 63 72 6f 6c 6c 44 65 6c 74 61 2e 73 71 72 4d 61 67 6e 69 .buttonData.scrollDelta.sqrMagni
63e0 74 75 64 65 2c 20 30 2e 30 66 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 tude,.0.0f)).............{......
6400 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 63 72 6f 6c 6c 48 61 6e 64 6c 65 72 20 3d 20 45 ...........var.scrollHandler.=.E
6420 78 65 63 75 74 65 45 76 65 6e 74 73 2e 47 65 74 45 76 65 6e 74 48 61 6e 64 6c 65 72 3c 49 53 63 xecuteEvents.GetEventHandler<ISc
6440 72 6f 6c 6c 48 61 6e 64 6c 65 72 3e 28 6c 65 66 74 42 75 74 74 6f 6e 44 61 74 61 2e 62 75 74 74 rollHandler>(leftButtonData.butt
6460 6f 6e 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 2e 67 61 6d onData.pointerCurrentRaycast.gam
6480 65 4f 62 6a 65 63 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 78 65 63 75 74 eObject);.................Execut
64a0 65 45 76 65 6e 74 73 2e 45 78 65 63 75 74 65 48 69 65 72 61 72 63 68 79 28 73 63 72 6f 6c 6c 48 eEvents.ExecuteHierarchy(scrollH
64c0 61 6e 64 6c 65 72 2c 20 6c 65 66 74 42 75 74 74 6f 6e 44 61 74 61 2e 62 75 74 74 6f 6e 44 61 74 andler,.leftButtonData.buttonDat
64e0 61 2c 20 45 78 65 63 75 74 65 45 76 65 6e 74 73 2e 73 63 72 6f 6c 6c 48 61 6e 64 6c 65 72 29 3b a,.ExecuteEvents.scrollHandler);
6500 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 20 .............}.........}........
6520 20 20 70 72 6f 74 65 63 74 65 64 20 62 6f 6f 6c 20 53 65 6e 64 55 70 64 61 74 65 45 76 65 6e 74 ..protected.bool.SendUpdateEvent
6540 54 6f 53 65 6c 65 63 74 65 64 4f 62 6a 65 63 74 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 ToSelectedObject().........{....
6560 20 20 20 20 20 20 20 20 20 69 66 20 28 65 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 .........if.(eventSystem.current
6580 53 65 6c 65 63 74 65 64 47 61 6d 65 4f 62 6a 65 63 74 20 3d 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 SelectedGameObject.==.null).....
65a0 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 0a 20 20 20 20 20 ............return.false;.......
65c0 20 20 20 20 20 20 20 76 61 72 20 64 61 74 61 20 3d 20 47 65 74 42 61 73 65 45 76 65 6e 74 44 61 .......var.data.=.GetBaseEventDa
65e0 74 61 28 29 3b 0a 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 ta();.............ExecuteEvents.
6600 45 78 65 63 75 74 65 28 65 76 65 6e 74 53 79 73 74 65 6d 2e 63 75 72 72 65 6e 74 53 65 6c 65 63 Execute(eventSystem.currentSelec
6620 74 65 64 47 61 6d 65 4f 62 6a 65 63 74 2c 20 64 61 74 61 2c 20 45 78 65 63 75 74 65 45 76 65 6e tedGameObject,.data,.ExecuteEven
6640 74 73 2e 75 70 64 61 74 65 53 65 6c 65 63 74 65 64 48 61 6e 64 6c 65 72 29 3b 0a 20 20 20 20 20 ts.updateSelectedHandler);......
6660 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 64 61 74 61 2e 75 73 65 64 3b 0a 20 20 20 20 20 20 20 .......return.data.used;........
6680 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 20 20 20 20 .}..........///.<summary>.......
66a0 20 20 2f 2f 2f 20 43 61 6c 63 75 6c 61 74 65 20 61 6e 64 20 70 72 6f 63 65 73 73 20 61 6e 79 20 ..///.Calculate.and.process.any.
66c0 6d 6f 75 73 65 20 62 75 74 74 6f 6e 20 73 74 61 74 65 20 63 68 61 6e 67 65 73 2e 0a 20 20 20 20 mouse.button.state.changes......
66e0 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 72 6f 74 65 ....///.</summary>.........prote
6700 63 74 65 64 20 76 6f 69 64 20 50 72 6f 63 65 73 73 4d 6f 75 73 65 50 72 65 73 73 28 4d 6f 75 73 cted.void.ProcessMousePress(Mous
6720 65 42 75 74 74 6f 6e 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 eButtonEventData.data).........{
6740 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 20 3d 20 .............var.pointerEvent.=.
6760 64 61 74 61 2e 62 75 74 74 6f 6e 44 61 74 61 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 data.buttonData;.............var
6780 20 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 20 3d 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f .currentOverGo.=.pointerEvent.po
67a0 69 6e 74 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 3b 0a interCurrentRaycast.gameObject;.
67c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 50 6f 69 6e 74 65 72 44 6f 77 6e 20 6e 6f 74 69 .............//.PointerDown.noti
67e0 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 64 61 74 61 2e 50 72 fication.............if.(data.Pr
6800 65 73 73 65 64 54 68 69 73 46 72 61 6d 65 28 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a essedThisFrame()).............{.
6820 20 20 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 65 6c 69 ................pointerEvent.eli
6840 67 69 62 6c 65 46 6f 72 43 6c 69 63 6b 20 3d 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 gibleForClick.=.true;...........
6860 20 20 20 20 20 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 64 65 6c 74 61 20 3d 20 56 65 63 74 6f ......pointerEvent.delta.=.Vecto
6880 72 32 2e 7a 65 72 6f 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 r2.zero;.................pointer
68a0 45 76 65 6e 74 2e 64 72 61 67 67 69 6e 67 20 3d 20 66 61 6c 73 65 3b 0a 20 20 20 20 20 20 20 20 Event.dragging.=.false;.........
68c0 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 75 73 65 44 72 61 67 54 68 72 65 ........pointerEvent.useDragThre
68e0 73 68 6f 6c 64 20 3d 20 74 72 75 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f shold.=.true;.................po
6900 69 6e 74 65 72 45 76 65 6e 74 2e 70 72 65 73 73 50 6f 73 69 74 69 6f 6e 20 3d 20 70 6f 69 6e 74 interEvent.pressPosition.=.point
6920 65 72 45 76 65 6e 74 2e 70 6f 73 69 74 69 6f 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 erEvent.position;...............
6940 20 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 50 72 65 73 73 52 61 79 63 61 ..pointerEvent.pointerPressRayca
6960 73 74 20 3d 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 43 75 72 72 65 6e 74 st.=.pointerEvent.pointerCurrent
6980 52 61 79 63 61 73 74 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 65 73 65 6c 65 Raycast;..................Desele
69a0 63 74 49 66 53 65 6c 65 63 74 69 6f 6e 43 68 61 6e 67 65 64 28 63 75 72 72 65 6e 74 4f 76 65 72 ctIfSelectionChanged(currentOver
69c0 47 6f 2c 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 Go,.pointerEvent);..............
69e0 20 20 20 20 2f 2f 20 73 65 61 72 63 68 20 66 6f 72 20 74 68 65 20 63 6f 6e 74 72 6f 6c 20 74 68 ....//.search.for.the.control.th
6a00 61 74 20 77 69 6c 6c 20 72 65 63 65 69 76 65 20 74 68 65 20 70 72 65 73 73 0a 20 20 20 20 20 20 at.will.receive.the.press.......
6a20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 69 66 20 77 65 20 63 61 6e 27 74 20 66 69 6e 64 20 61 20 ..........//.if.we.can't.find.a.
6a40 70 72 65 73 73 20 68 61 6e 64 6c 65 72 20 73 65 74 20 74 68 65 20 70 72 65 73 73 0a 20 20 20 20 press.handler.set.the.press.....
6a60 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 68 61 6e 64 6c 65 72 20 74 6f 20 62 65 20 77 68 61 ............//.handler.to.be.wha
6a80 74 20 77 6f 75 6c 64 20 72 65 63 65 69 76 65 20 61 20 63 6c 69 63 6b 2e 0a 20 20 20 20 20 20 20 t.would.receive.a.click.........
6aa0 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 77 50 72 65 73 73 65 64 20 3d 20 45 78 65 63 75 74 .........var.newPressed.=.Execut
6ac0 65 45 76 65 6e 74 73 2e 45 78 65 63 75 74 65 48 69 65 72 61 72 63 68 79 28 63 75 72 72 65 6e 74 eEvents.ExecuteHierarchy(current
6ae0 4f 76 65 72 47 6f 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 OverGo,.pointerEvent,.ExecuteEve
6b00 6e 74 73 2e 70 6f 69 6e 74 65 72 44 6f 77 6e 48 61 6e 64 6c 65 72 29 3b 0a 0a 20 20 20 20 20 20 nts.pointerDownHandler);........
6b20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 64 69 64 6e 74 20 66 69 6e 64 20 61 20 70 72 65 73 73 20 ..........//.didnt.find.a.press.
6b40 68 61 6e 64 6c 65 72 2e 2e 2e 20 73 65 61 72 63 68 20 66 6f 72 20 61 20 63 6c 69 63 6b 20 68 61 handler....search.for.a.click.ha
6b60 6e 64 6c 65 72 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6e 65 77 50 72 65 ndler.................if.(newPre
6b80 73 73 65 64 20 3d 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 ssed.==.null)...................
6ba0 20 20 6e 65 77 50 72 65 73 73 65 64 20 3d 20 45 78 65 63 75 74 65 45 76 65 6e 74 73 2e 47 65 74 ..newPressed.=.ExecuteEvents.Get
6bc0 45 76 65 6e 74 48 61 6e 64 6c 65 72 3c 49 50 6f 69 6e 74 65 72 43 6c 69 63 6b 48 61 6e 64 6c 65 EventHandler<IPointerClickHandle
6be0 72 3e 28 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 r>(currentOverGo);..............
6c00 20 20 20 20 2f 2f 20 44 65 62 75 67 2e 4c 6f 67 28 22 50 72 65 73 73 65 64 3a 20 22 20 2b 20 6e ....//.Debug.Log("Pressed:.".+.n
6c20 65 77 50 72 65 73 73 65 64 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f ewPressed);..................flo
6c40 61 74 20 74 69 6d 65 20 3d 20 54 69 6d 65 2e 75 6e 73 63 61 6c 65 64 54 69 6d 65 3b 0a 0a 20 20 at.time.=.Time.unscaledTime;....
6c60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6e 65 77 50 72 65 73 73 65 64 20 3d 3d 20 ..............if.(newPressed.==.
6c80 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 6c 61 73 74 50 72 65 73 73 29 0a 20 20 20 20 20 20 20 20 pointerEvent.lastPress).........
6ca0 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 20 20 20 20 76 61 ........{.....................va
6cc0 72 20 64 69 66 66 54 69 6d 65 20 3d 20 74 69 6d 65 20 2d 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 r.diffTime.=.time.-.pointerEvent
6ce0 2e 63 6c 69 63 6b 54 69 6d 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .clickTime;.....................
6d00 69 66 20 28 64 69 66 66 54 69 6d 65 20 3c 20 30 2e 33 66 29 0a 20 20 20 20 20 20 20 20 20 20 20 if.(diffTime.<.0.3f)............
6d20 20 20 20 20 20 20 20 20 20 20 20 20 20 2b 2b 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 63 6c 69 63 .............++pointerEvent.clic
6d40 6b 43 6f 75 6e 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 kCount;.....................else
6d60 0a 20 20 20 20 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 .........................pointer
6d80 45 76 65 6e 74 2e 63 6c 69 63 6b 43 6f 75 6e 74 20 3d 20 31 3b 0a 0a 20 20 20 20 20 20 20 20 20 Event.clickCount.=.1;...........
6da0 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 45 76 65 6e 74 2e 63 6c 69 63 6b 54 69 6d ...........pointerEvent.clickTim
6dc0 65 20 3d 20 74 69 6d 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 e.=.time;.................}.....
6de0 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 20 20 20 ............else................
6e00 20 7b 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 76 .{.....................pointerEv
6e20 65 6e 74 2e 63 6c 69 63 6b 43 6f 75 6e 74 20 3d 20 31 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 ent.clickCount.=.1;.............
6e40 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 69 6e 74 65 72 45 76 ....}..................pointerEv
6e60 65 6e 74 2e 70 6f 69 6e 74 65 72 50 72 65 73 73 20 3d 20 6e 65 77 50 72 65 73 73 65 64 3b 0a 20 ent.pointerPress.=.newPressed;..
6e80 20 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 ...............pointerEvent.rawP
6ea0 6f 69 6e 74 65 72 50 72 65 73 73 20 3d 20 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 3b 0a 0a 20 20 ointerPress.=.currentOverGo;....
6ec0 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 63 6c 69 63 6b ..............pointerEvent.click
6ee0 54 69 6d 65 20 3d 20 74 69 6d 65 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f Time.=.time;..................//
6f00 20 53 61 76 65 20 74 68 65 20 64 72 61 67 20 68 61 6e 64 6c 65 72 20 61 73 20 77 65 6c 6c 0a 20 .Save.the.drag.handler.as.well..
6f20 20 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 70 6f 69 6e ...............pointerEvent.poin
6f40 74 65 72 44 72 61 67 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 terDrag.=.ExecuteEvents.GetEvent
6f60 48 61 6e 64 6c 65 72 3c 49 44 72 61 67 48 61 6e 64 6c 65 72 3e 28 63 75 72 72 65 6e 74 4f 76 65 Handler<IDragHandler>(currentOve
6f80 72 47 6f 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 70 6f 69 6e 74 rGo);..................if.(point
6fa0 65 72 45 76 65 6e 74 2e 70 6f 69 6e 74 65 72 44 72 61 67 20 21 3d 20 6e 75 6c 6c 29 0a 20 20 20 erEvent.pointerDrag.!=.null)....
6fc0 20 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 .................ExecuteEvents.E
6fe0 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 72 61 67 2c xecute(pointerEvent.pointerDrag,
7000 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 2e 69 6e 69 .pointerEvent,.ExecuteEvents.ini
7020 74 69 61 6c 69 7a 65 50 6f 74 65 6e 74 69 61 6c 44 72 61 67 29 3b 0a 0a 20 20 20 20 20 20 20 20 tializePotentialDrag);..........
7040 20 20 20 20 20 20 20 20 6d 5f 49 6e 70 75 74 50 6f 69 6e 74 65 72 45 76 65 6e 74 20 3d 20 70 6f ........m_InputPointerEvent.=.po
7060 69 6e 74 65 72 45 76 65 6e 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 interEvent;.............}.......
7080 20 20 20 20 20 20 20 2f 2f 20 50 6f 69 6e 74 65 72 55 70 20 6e 6f 74 69 66 69 63 61 74 69 6f 6e .......//.PointerUp.notification
70a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 64 61 74 61 2e 52 65 6c 65 61 73 65 64 54 68 .............if.(data.ReleasedTh
70c0 69 73 46 72 61 6d 65 28 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 isFrame()).............{........
70e0 20 20 20 20 20 20 20 20 20 52 65 6c 65 61 73 65 4d 6f 75 73 65 28 70 6f 69 6e 74 65 72 45 76 65 .........ReleaseMouse(pointerEve
7100 6e 74 2c 20 63 75 72 72 65 6e 74 4f 76 65 72 47 6f 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 nt,.currentOverGo);.............
7120 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 47 }.........}..........protected.G
7140 61 6d 65 4f 62 6a 65 63 74 20 47 65 74 43 75 72 72 65 6e 74 46 6f 63 75 73 65 64 47 61 6d 65 4f ameObject.GetCurrentFocusedGameO
7160 62 6a 65 63 74 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 72 65 bject().........{.............re
7180 74 75 72 6e 20 6d 5f 43 75 72 72 65 6e 74 46 6f 63 75 73 65 64 47 61 6d 65 4f 62 6a 65 63 74 3b turn.m_CurrentFocusedGameObject;
71a0 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 00 00 00 00 00 00 00 .........}.....}.}..............
71c0 00 00 00 00 00 00 00 00 15 00 00 00 53 74 61 6e 64 61 6c 6f 6e 65 49 6e 70 75 74 4d 6f 64 75 6c ............StandaloneInputModul
71e0 65 00 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 74 65 6d 73 e.......UnityEngine.EventSystems