public static void HideMiniMap()
    {
        instance.mask.transform.localScale = new Vector3(70f, 0f, 70f);
        instance.gameObject.SetActive(false);

        UIPowerBar.RemoveListener();
        UIPowerBar.StartRegen();
    }
Exemple #2
0
    public IEnumerator TeleportToFuture()
    {
        Player.SwitchWorld();

        //change the transparence of the ghost
        GhostPlayer.SetVisible();

        // close the gate
        yield return(MaskController.instance.CloseGateAsync());

        // go back to transparent
        GhostPlayer.SetTranparent();

        // hide the second camera
        WorldManager.SwitchWorld();

        // UI
        UIPowerBar.RemoveListener();
        UIPowerBar.StartRegen();

        Player.instance.wallHit = false;
    }