예제 #1
0
    // get the type of the current camera
    public string GetCurrentCameraTypeText()
    {
        Cinematic activeCinematic = Cinematic.GetActiveCinematic();

        if (null != activeCinematic)
        {
            return("Cinematic");
        }
        return("GameCameraBehavior");
    }
예제 #2
0
    // get a description of the current camera
    public string GetCurrentCameraText()
    {
        Cinematic activeCinematic = Cinematic.GetActiveCinematic();

        if (null != activeCinematic)
        {
            return(activeCinematic.name);
        }

        if (Application.isPlaying)
        {
            if (GetNewestRunningBehaviorIndex() >= 0)
            {
                return(_runningBehaviors[GetNewestRunningBehaviorIndex()].behavior.GetCameraText());
            }
            return("NO CAMERA");
        }
        else         // editor
        {
            return("game cam default");
        }
    }