Пример #1
0
    void Respawn()
    {
        StartCoroutine(AsteraX.PlotRespawnPointCoroutine(RespawnCallback));
        // Move the player off screen, disable OffScreenWrapper until respawn
        OffScreenWrapper wrapper = GetComponent <OffScreenWrapper>();

        if (wrapper != null)
        {
            wrapper.enabled = false;
        }
        transform.position = new Vector3(10000, 10000, 0);
    }