コード例 #1
0
    IEnumerator SwitchCameraInternal(CamType target)
    {
        //yield return StartCoroutine(Fader.FadeOut());
        Fader.ChangeTarget(0);
        cameras[(int)camStatus].enabled = false;
        camStatus = target;
        cameras[(int)target].enabled = true;

        //TODO change worldspace event cam

        Fader.ChangeTarget(1);
        //yield return StartCoroutine(Fader.FadeIn());
        yield return(null);
    }
コード例 #2
0
 public static void ChangeTarget(float i)
 {
     Instance.ChangeTarget(new Color(0, 0, 0, i));
 }