// [TypeInfo RVA: 0x0]
public class TimedEventManager : MonoBehaviourPunCallbacks
{
	public float minTime; // 0x28
	public float maxTime; // 0x2C
	private float timer; // 0x30
	public TMPro.TMP_Text timerText; // 0x38
	public UnityEngine.GameObject prefabToSpawn; // 0x40
	public UnityEngine.Transform spawnPoint; // 0x48
	private bool triggered; // 0x50

	// RVA: 0x31FF510 VA: 0x78188EA510
	private void Start();
	/*
	 *   float fVar1;
	 *
	 *   fVar1 = Random.Range(this.minTime,this.maxTime);
	 *   this.timer = fVar1;
	 *   return;
	 */
	// RVA: 0x31FF530 VA: 0x78188EA530
	private void Update();
	/*
	 *   char cVar1;
	 *   void *pvVar2;
	 *   void *methodInfo_00;
	 *   long *plVar3;
	 *   float fVar4;
	 *   float fVar5;
	 *   int iStack_24;
	 *
	 *   iStack_24 = 0;
	 *   if (this.triggered == false) {
	 *     fVar5 = this.timer;
	 *     fVar4 = UnityEngine.Time.get_deltaTime();
	 *     cVar1 = cRam000000000754a7cf;
	 *     fVar5 = fVar5 - fVar4;
	 *     plVar3 = this.timerText;
	 *     this.timer = fVar5;
	 *     if (cVar1 == '\0') {
	 *       func_0x031fdc8c(typeinfo_ptr_mscorlib_Math_6FC0738);
	 *       cRam000000000754a7cf = '\x01';
	 *     }
	 *     if (*(int *)(*(long *)typeinfo_ptr_mscorlib_Math_6FC0738 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *     }
	 *     iStack_24 = -0x80000000;
	 *     if ((float)(int)fVar5 != INFINITY) {
	 *       iStack_24 = (int)fVar5;
	 *     }
	 *     pvVar2 = System.Int32.ToString(&iStack_24);
	 *     if (plVar3 == null) {
	 *       IL2CPP.ThrowNullReferenceException();
	 *     }
	 *     (**(code **)(*plVar3 + 0x558))(plVar3,pvVar2,*(undefined8 *)(*plVar3 + 0x560));
	 *     if (this.timer <= 0.0) {
	 *       this.triggered = true;
	 *       TimedEventManager.OnTimerEnd(this);
	 *     }
	 *   }
	 *   return;
	 */
	// RVA: 0x31FF614 VA: 0x78188EA614
	private void OnTimerEnd();
	/*
	 *   undefined *puVar1;
	 *   undefined *puVar2;
	 *   bool bVar3;
	 *   ulong uVar4;
	 *   void *extraout_x1;
	 *   undefined8 uVar5;
	 *   undefined8 extraout_x1_00;
	 *   undefined8 extraout_x1_01;
	 *   float *pfVar6;
	 *   long lVar7;
	 *   void *pvVar8;
	 *   float fVar9;
	 *   float fVar10;
	 *   float fVar11;
	 *   float fVar12;
	 *   float fVar13;
	 *   float fVar14;
	 *   float fVar15;
	 *   UnityEngine_Vector3 UVar16;
	 *   UnityEngine_Vector4 UVar17;
	 *
	 *   puVar2 = typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0;
	 *   if ((bRam000000000754a77e & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8);
	 *     func_0x031fdc8c(typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0);
	 *     bRam000000000754a77e = 1;
	 *     methodInfo = extraout_x1;
	 *   }
	 *   if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *     func_0x031fde08(*(long *)puVar2,methodInfo);
	 *   }
	 *   bVar3 = Photon.Pun.PhotonNetwork.get_IsMasterClient();
	 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
	 *   if (bVar3) {
	 *     pvVar8 = this.prefabToSpawn;
	 *     if (*(int *)(*(long *)typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *     }
	 *     uVar4 = UnityEngine.Object.op_Inequality(pvVar8,null);
	 *     if ((uVar4 & 1) != 0) {
	 *       pvVar8 = this.spawnPoint;
	 *       if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *         func_0x031fde08();
	 *       }
	 *       uVar4 = UnityEngine.Object.op_Inequality(pvVar8,null);
	 *       if ((uVar4 & 1) == 0) {
	 *         if (cRam000000000754a7ce == '\0') {
	 *           func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Vector3_6FC0A08);
	 *           cRam000000000754a7ce = '\x01';
	 *         }
	 *         pfVar6 = *(float **)(*(long *)typeinfo_ptr_UnityEngine_CoreModule_Vector3_6FC0A08 + 0xb8);
	 *         fVar9 = *pfVar6;
	 *         fVar10 = pfVar6[1];
	 *         fVar11 = pfVar6[2];
	 *       }
	 *       else {
	 *         if (this.spawnPoint == null) goto LAB_032ff848;
	 *         UVar16 = UnityEngine.Transform.get_position(this.spawnPoint);
	 *         fVar11 = UVar16.z;
	 *         fVar10 = UVar16.y;
	 *         fVar9 = UVar16.x;
	 *       }
	 *       pvVar8 = this.spawnPoint;
	 *       if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *         func_0x031fde08();
	 *       }
	 *       uVar4 = UnityEngine.Object.op_Inequality(pvVar8,null);
	 *       if ((uVar4 & 1) == 0) {
	 *         if (cRam000000000754a7d0 == '\0') {
	 *           func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Quaternion_6FC0EA0);
	 *           cRam000000000754a7d0 = '\x01';
	 *         }
	 *         pfVar6 = *(float **)(*(long *)typeinfo_ptr_UnityEngine_CoreModule_Quaternion_6FC0EA0 + 0xb8)
	 *         ;
	 *         fVar12 = *pfVar6;
	 *         fVar13 = pfVar6[1];
	 *         fVar14 = pfVar6[2];
	 *         fVar15 = pfVar6[3];
	 *       }
	 *       else {
	 *         if (this.spawnPoint == null) goto LAB_032ff848;
	 *         UVar17 = UnityEngine.Transform.get_rotation(this.spawnPoint);
	 *         fVar15 = UVar17.w;
	 *         fVar14 = UVar17.z;
	 *         fVar13 = UVar17.y;
	 *         fVar12 = UVar17.x;
	 *       }
	 *       if (this.prefabToSpawn == null) {
	 * LAB_032ff848:
	 *         IL2CPP.ThrowNullReferenceException();
	 *       }
	 *       pvVar8 = UnityEngine.Object.get_name(this.prefabToSpawn);
	 *       if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *         func_0x031fde08(*(long *)puVar2);
	 *       }
	 *       UVar16.y = fVar10;
	 *       UVar16.x = fVar9;
	 *       UVar16.z = fVar11;
	 *       UVar17.y = fVar13;
	 *       UVar17.x = fVar12;
	 *       UVar17.w = fVar15;
	 *       UVar17.z = fVar14;
	 *       Photon.Pun.PhotonNetwork.Instantiate(pvVar8,UVar16,UVar17,0,null);
	 *     }
	 *   }
	 *   if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   puVar2 = typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0;
	 *   uVar5 = 0;
	 *   bVar3 = true;
	 *   if ((bRam0000000007555229 & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_PhotonRealtime_ClientState_6FC2150,0);
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Debug_6FC07A8);
	 *     func_0x031fdc8c(typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0);
	 *     func_0x031fdc8c(PTR_DAT_070ff878);
	 *     bRam0000000007555229 = 1;
	 *     uVar5 = extraout_x1_00;
	 *   }
	 *   if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *     uVar5 = extraout_x1_01;
	 *   }
	 *   if (cRam000000000754a95f == '\0') {
	 *     func_0x031fdc8c(typeinfo_ptr_PhotonUnityNetworking_PhotonNetwork_6FC08F0,uVar5);
	 *     cRam000000000754a95f = '\x01';
	 *   }
	 *   pvVar8 = *(void **)puVar2;
	 *   if (*(int *)((long)pvVar8 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *     pvVar8 = *(void **)puVar2;
	 *   }
	 *   lVar7 = *(long *)((long)pvVar8 + 0xb8);
	 *   if (*(char *)(lVar7 + 0x38) == '\0') {
	 *     if (*(int *)((long)pvVar8 + 0xe4) == 0) {
	 *       pvVar8 = (void *)func_0x031fde08();
	 *     }
	 *     pvVar8 = Photon.Pun.PhotonNetwork.get_CurrentRoom();
	 *     if (pvVar8 == null) {
	 *       pvVar8 = *(void **)puVar2;
	 *       if (*(int *)((long)pvVar8 + 0xe4) == 0) {
	 *         pvVar8 = (void *)func_0x031fde08();
	 *       }
	 *       Photon.Pun.PhotonNetwork.get_NetworkClientState();
	 *       pvVar8 = System.Net.UnsafeNclNativeMethods.HttpApi.Enum.ToString(&stack0xffffffffffffffc8);
	 *       pvVar8 = System.String.Concat(*(void **)PTR_DAT_070ff878,pvVar8);
	 *       if (*(int *)(*(long *)typeinfo_ptr_UnityEngine_CoreModule_Debug_6FC07A8 + 0xe4) == 0) {
	 *         func_0x031fde08(*(long *)typeinfo_ptr_UnityEngine_CoreModule_Debug_6FC07A8);
	 *       }
	 *       UnityEngine.Debug.LogWarning(pvVar8);
	 *     }
	 *     else {
	 *       pvVar8 = *(void **)puVar2;
	 *       if (*(int *)((long)pvVar8 + 0xe4) == 0) {
	 *         pvVar8 = (void *)func_0x031fde08();
	 *       }
	 *       pvVar8 = Photon.Pun.PhotonNetwork.get_CurrentRoom();
	 *       if (pvVar8 == null) goto LAB_05b6d5ac;
	 *       bVar3 = *(int *)((long)pvVar8 + 0x28) != 0;
	 *     }
	 *     lVar7 = *(long *)puVar2;
	 *     if (*(int *)(lVar7 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *       lVar7 = *(long *)puVar2;
	 *     }
	 *     pvVar8 = *(void **)(*(long *)(lVar7 + 0xb8) + 8);
	 *     if (pvVar8 != null) {
	 *       Photon.Realtime.LoadBalancingClient.OpLeaveRoom(pvVar8,bVar3,false);
	 *       return;
	 *     }
	 *   }
	 *   else {
	 *     if (*(int *)((long)pvVar8 + 0xe4) == 0) {
	 *       func_0x031fde08();
	 *       lVar7 = *(long *)(*(long *)puVar2 + 0xb8);
	 *     }
	 *     *(undefined8 *)(lVar7 + 0x40) = 0;
	 *     func_0x031fdc38((undefined8 *)(lVar7 + 0x40),0);
	 *     lVar7 = *(long *)(*(long *)(*(long *)puVar2 + 0xb8) + 8);
	 *     if ((lVar7 != 0) && (pvVar8 = *(void **)(lVar7 + 0xc0), pvVar8 != null)) {
	 *       Photon.Realtime.MatchMakingCallbacksContainer.OnLeftRoom(pvVar8);
	 *       lVar7 = *(long *)(*(long *)(*(long *)puVar2 + 0xb8) + 8);
	 *       if ((lVar7 != 0) && (pvVar8 = *(void **)(lVar7 + 0xb8), pvVar8 != null)) {
	 *         Photon.Realtime.ConnectionCallbacksContainer.OnConnectedToMaster(pvVar8);
	 *         return;
	 *       }
	 *     }
	 *   }
	 * LAB_05b6d5ac:
	 *   IL2CPP.ThrowNullReferenceException();
	 */
	// RVA: 0x31FF84C VA: 0x78188EA84C
	public override void OnLeftRoom();
	/*
	 *   undefined *puVar1;
	 *   void *extraout_x1;
	 *   void *extraout_x1_00;
	 *   void *extraout_x1_01;
	 *
	 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Application_6FC0EA8;
	 *   if ((bRam000000000754a77f & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Application_6FC0EA8);
	 *     bRam000000000754a77f = 1;
	 *     methodInfo = extraout_x1;
	 *   }
	 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *     func_0x031fde08(*(long *)puVar1,methodInfo);
	 *     methodInfo = extraout_x1_00;
	 *   }
	 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Application_6FC0EA8;
	 *   if ((bRam000000000755dca8 & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Application_6FC0EA8);
	 *     bRam000000000755dca8 = 1;
	 *     methodInfo = extraout_x1_01;
	 *   }
	 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *     func_0x031fde08(*(long *)puVar1,methodInfo);
	 *   }
	 *   if (pcRam000000000755dca0 == null) {
	 *     pcRam000000000755dca0 = (code *)func_0x031fdc50(&UNK_0138b136);
	 *   }
	 *   (*pcRam000000000755dca0)(0);
	 *   return;
	 */
	// RVA: 0x31FF850 VA: 0x78188EA850
	private void QuitGame();
	/*
	 *   undefined *puVar1;
	 *   void *extraout_x1;
	 *   void *extraout_x1_00;
	 *   void *extraout_x1_01;
	 *
	 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Application_6FC0EA8;
	 *   if ((bRam000000000754a77f & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Application_6FC0EA8);
	 *     bRam000000000754a77f = 1;
	 *     methodInfo = extraout_x1;
	 *   }
	 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *     func_0x031fde08(*(long *)puVar1,methodInfo);
	 *     methodInfo = extraout_x1_00;
	 *   }
	 *   puVar1 = typeinfo_ptr_UnityEngine_CoreModule_Application_6FC0EA8;
	 *   if ((bRam000000000755dca8 & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Application_6FC0EA8);
	 *     bRam000000000755dca8 = 1;
	 *     methodInfo = extraout_x1_01;
	 *   }
	 *   if (*(int *)(*(long *)puVar1 + 0xe4) == 0) {
	 *     func_0x031fde08(*(long *)puVar1,methodInfo);
	 *   }
	 *   if (pcRam000000000755dca0 == null) {
	 *     pcRam000000000755dca0 = (code *)func_0x031fdc50(&UNK_0138b136);
	 *   }
	 *   (*pcRam000000000755dca0)(0);
	 *   return;
	 */
	// RVA: 0x31FF8A0 VA: 0x78188EA8A0
	public void .ctor();
	/*
	 *   undefined4 uVar1;
	 *   undefined *puVar2;
	 *
	 *   uVar1 = _UNK_0134d6dc;
	 *   this.minTime = (float)_UNK_0134d6d8;
	 *   puVar2 = typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8;
	 *   this.maxTime = (float)uVar1;
	 *   if ((bRam000000000755f76f & 1) == 0) {
	 *     func_0x031fdc8c(typeinfo_ptr_UnityEngine_CoreModule_Object_6FC07E8,0);
	 *     bRam000000000755f76f = 1;
	 *   }
	 *   if (*(int *)(*(long *)puVar2 + 0xe4) == 0) {
	 *     func_0x031fde08();
	 *   }
	 *   return;
	 */
}
