예제 #1
0
    // Token: 0x0600048F RID: 1167 RVA: 0x000248B0 File Offset: 0x00022AB0
    private void Spawn()
    {
        Player localPlayer = Player.m_localPlayer;

        if (localPlayer == null || Vector3.Distance(localPlayer.transform.position, base.transform.position) > 64f)
        {
            this.m_lastSpawnTime = Time.time;
            return;
        }
        if (this.TestBlocked())
        {
            return;
        }
        if (Smoke.GetTotalSmoke() > 100)
        {
            Smoke.FadeOldest();
        }
        UnityEngine.Object.Instantiate <GameObject>(this.m_smokePrefab, base.transform.position, UnityEngine.Random.rotation);
        this.m_lastSpawnTime = Time.time;
    }