public static void DisplayMiniMap()
    {
        instance.mask.transform.localScale = new Vector3(160f, 0f, 90f);
        instance.gameObject.SetActive(true);

        // the minimap consume power, start depleting the power bar
        UIPowerBar.SetListener(new PowerBarListenerForMiniMap());
        UIPowerBar.StartDecrease(1f);
    }
Exemple #2
0
    public void TeleportToPresent()
    {
        MiniMapController.HideMiniMap();
        Player.SwitchWorld();

        // UI
        UIPowerBar.SetListener(new PowerBarListenerForSwitch());
        UIPowerBar.StartDecrease(2f);

        // start opening the gate asynchronously
        Debug.Log("OpenGate Async");
        instance.StartCoroutine(MaskController.instance.OpenGateAsync());

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

        Player.instance.wallHit = false;
    }