Example #1
0
    public static IEnumerator LeaveCannon()
    {
        TopDownCamera.Instance.transform.position = currentCannon.CannonCam.transform.position;
        TopDownCamera.Instance.transform.rotation = currentCannon.CannonCam.transform.rotation;
        TopDownCamera.Instance.GetComponent <Camera>().enabled  = true;
        currentCannon.CannonCam.GetComponent <Camera>().enabled = false;
        UIMaster.FadePhanel((int)UIPannels.Cannon);
        //UIMaster.TogglePanelLock(true, (int)UIPannels.Action);
        UIMaster.FadePhanel((int)UIPannels.Action);

        yield return(TopDownCamera.LerpToCurrentPlayer());
    }