コード例 #1
0
    public static void HideMiniMap()
    {
        instance.mask.transform.localScale = new Vector3(70f, 0f, 70f);
        instance.gameObject.SetActive(false);

        UIPowerBar.RemoveListener();
        UIPowerBar.StartRegen();
    }
コード例 #2
0
ファイル: GameManager.cs プロジェクト: mnogueron/TimeBreach
    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;
    }