Ejemplo n.º 1
0
    public Transform OverrideSetTarget(cameraPriority prio, Transform target)
    {
        Transform oldTarget = this.target;

        if (prio > currentPrio)
        {
            this.target = target;
        }
        return(oldTarget);
    }
Ejemplo n.º 2
0
    //Camera Targets

    //Set new camera target
    public void SetNewTarget(cameraPriority prio, Transform target)
    {
        this.target = target;
        currentPrio = prio;
    }