Beispiel #1
0
    //called any time a rigid body enters the collider of my trigger
    void OnTriggerEnter(Collider other)
    {
        //deactivate other cameras
        camControl.DeactivateAllCams();

        //activate camToActivate
        camToActivate.SetActive(true);
    }