How do i word in C# ontrigger enter if object A AND object B are in the trigger, for object C to react

both objects have tags, must be in c#, just need help wording it, not sure if that possible though?

You could use OnTriggerStay, but that gets called almost every frame and could get dicey. Best to do it on Enter and Exit and keep track of the objects… or at least try.

This is untested and just thrown together, i have no idea how or if it could meet your needs. Do with it what you will.

using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class ExampleClass : MonoBehaviour 
{
		private GameObject objectC;
		private List<GameObject> objectsInTriggerZone;
		
		public void Start()
		{
			objectC = GameObject.FindWithTag("Object_C");
		}

		public void Update()
		{
			if (objectsInTriggerZone.count >= 2)
			{
				if (objectsInTriggerZone.Exists(go => go.Tag == "Object_A") && objectsInTriggerZone.Exists(go => go.Tag == "Object_B"))
				{
					// Do something with objectC
					Destroy(objectC);
				}
			}
		}
		
		public void OnTriggerEnter(Collider other) 
		{
			if (other.gameObject.Tag == "Object_A" || other.gameObject.Tag == "Object_B")
				this.objectsInTriggerZone.Add(other.gameObject);
		}

		public void void OnTriggerExit(Collider other)
		{
			this.objectsInTriggerZone.Remove(other.gameObject);
		}
}