private Transform GetParentNode(CutSceneData.ATTACHMENT_TYPE attachmentType, string nodeName) { //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Expected O, but got Unknown if (attachmentType == CutSceneData.ATTACHMENT_TYPE.NONE) { return(null); } Transform val = null; switch (attachmentType) { case CutSceneData.ATTACHMENT_TYPE.CAMERA: { CutSceneCamera activeCamera = GetActiveCamera(); val = activeCamera.transform; break; } case CutSceneData.ATTACHMENT_TYPE.MY_CHARACTER: case CutSceneData.ATTACHMENT_TYPE.PLAYER_1: case CutSceneData.ATTACHMENT_TYPE.PLAYER_2: case CutSceneData.ATTACHMENT_TYPE.PLAYER_3: val = GetPlayerNode(attachmentType); break; case CutSceneData.ATTACHMENT_TYPE.ENEMY: if (enemyInfo != null && enemyInfo.obj != null) { val = enemyInfo.obj.get_transform(); } break; case CutSceneData.ATTACHMENT_TYPE.ACTOR_1: val = GetActorTransform(0); break; case CutSceneData.ATTACHMENT_TYPE.ACTOR_2: val = GetActorTransform(1); break; case CutSceneData.ATTACHMENT_TYPE.ACTOR_3: val = GetActorTransform(2); break; case CutSceneData.ATTACHMENT_TYPE.ACTOR_4: val = GetActorTransform(3); break; } if (val != null) { if (string.IsNullOrEmpty(nodeName)) { return(val); } return(FindChildTransform(val, nodeName)); } return(null); }
private Transform GetPlayerNode(CutSceneData.ATTACHMENT_TYPE attachmentType) { //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown CutSceneData.PlayerData.TYPE tYPE = CutSceneData.PlayerData.TYPE.MAX_NUM; switch (attachmentType) { case CutSceneData.ATTACHMENT_TYPE.MY_CHARACTER: tYPE = CutSceneData.PlayerData.TYPE.MY_CHARACTER; break; case CutSceneData.ATTACHMENT_TYPE.PLAYER_1: tYPE = CutSceneData.PlayerData.TYPE.PLAYER_1; break; case CutSceneData.ATTACHMENT_TYPE.PLAYER_2: tYPE = CutSceneData.PlayerData.TYPE.PLAYER_2; break; case CutSceneData.ATTACHMENT_TYPE.PLAYER_3: tYPE = CutSceneData.PlayerData.TYPE.PLAYER_3; break; default: return(null); } if (playerInfo != null) { for (int i = 0; i < playerInfo.Length; i++) { if (playerInfo[i] != null && playerInfo[i].keyData.type == tYPE) { return(playerInfo[i].obj.get_transform()); } } } return(null); }