I have an object and I\'m trying to get the player to enter the trigger and press a key, swap the camera.
My code:
public class Canhao : MonoBehaviour {
You are puting TRIGGER || KEYPRESS you must replace the || with &&.
if(other.gameObject.CompareTag("Player") && Input.GetKeyDown(KeyCode.C))