Exemplo n.º 1
0
    // get the type of the current camera
    public string GetCurrentCameraTypeText()
    {
        Cinematic activeCinematic = Cinematic.GetActiveCinematic();

        if (null != activeCinematic)
        {
            return("Cinematic");
        }
        return("GameCameraBehavior");
    }
Exemplo n.º 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");
        }
    }