I have a script on my player. After entering the trigger I want to start animation of the door, which is another game object.
But I know only how to do that on the current GO.
void OnTriggerEnter(Collider collider)
{
switch (collider.name)
{
case "DoorCollider":
animation.Play("LeftDoor"); //?
break;
}
}