initial upload
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x0200001A RID: 26
|
||||
[Serializable]
|
||||
public class disconnectendwon : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06000063 RID: 99 RVA: 0x00004568 File Offset: 0x00002768
|
||||
public disconnectendwon()
|
||||
|
||||
{
|
||||
this.timeOut = 5f;
|
||||
}
|
||||
|
||||
// Token: 0x06000064 RID: 100 RVA: 0x0000457C File Offset: 0x0000277C
|
||||
public virtual void Awake()
|
||||
{
|
||||
this.Invoke("DestroyNow", this.timeOut);
|
||||
}
|
||||
|
||||
// Token: 0x06000065 RID: 101 RVA: 0x00004590 File Offset: 0x00002790
|
||||
public virtual void DestroyNow()
|
||||
{
|
||||
if (this.detachChildren)
|
||||
{
|
||||
this.transform.DetachChildren();
|
||||
}
|
||||
Network.Disconnect();
|
||||
MasterServer.UnregisterHost();
|
||||
Application.LoadLevel(10);
|
||||
}
|
||||
|
||||
// Token: 0x06000066 RID: 102 RVA: 0x000045BC File Offset: 0x000027BC
|
||||
public virtual void Main()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000089 RID: 137
|
||||
public float timeOut;
|
||||
|
||||
// Token: 0x0400008A RID: 138
|
||||
public bool detachChildren;
|
||||
}
|
||||
Reference in New Issue
Block a user