This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"pilotStatus":0,"trackedMech":"ec9d2280-ca9a-4d90-8a20-963d8a4c0a39.0","ChangedRecently":false},{"pilotStatus":0,"trackedMech":"ebc06b6a-c5a8-4165-95ce-480bcf335570.0","ChangedRecently":false},{"pilotStatus":0,"trackedMech":"d50f1e9d-0a0b-4dc8-9a06-a33233aaa8a1.0","ChangedRecently":false},{"pilotStatus":0,"trackedMech":"461141c2-f956-49a5-b2c6-6f951b957a94.0","ChangedRecently":false},{"pilotStatus":0,"trackedMech":"e3e34fc2-c664-42ab-920b-6002c058ac55.0","ChangedRecently":false},{"pilotStatus":0,"trackedMech":"f46b3021-803a-41ed-87e0-1b8cb86663b8.0","ChangedRecently":false},{"pilotStatus":0,"trackedMech":"d7109e5f-7e09-4a9d-98a7-a0bf651532e6.0","ChangedRecently":false},{"pilotStatus":0,"trackedMech":"bdb37cd1-dff5-4740-b361-d5d1aebfd452.0","ChangedRecently":false},{"pilotStatus":0,"trackedMech":"5a7f08f5-3ceb-467e-b857-b3fc1874d016.0","ChangedRecently":false},{"pilotStatus":0,"trackedMech":"938ab06b-304b-4f45-ba86-abcaa0fe01c5.0","ChangedRecently":false}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Type type = __instance.GetType(); | |
MethodInfo methodInfo = type.GetMethod("OnImpact", BindingFlags.NonPublic | BindingFlags.Instance); | |
object[] parametersArray = new object[] { __instance.weapon.DamagePerShot }; | |
methodInfo.Invoke(__instance, parametersArray); | |
this is a method execute with a parameter | |
Type type3 = __instance.GetType(); | |
FieldInfo field= type3.GetField("hitIndex", BindingFlags.NonPublic | BindingFlags.Instance); | |
field.SetValue(__instance, shotcount - 1); | |
setting a field | |
and setting a parameter is the same with paramater instead of field |