using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TeleportMe : MonoBehaviour
{
public float x, y, z;
public void OnTriggerEnter(Collider other)
{
if(other.tag == "Player")
{
other.gameObject.transform.position = transform.position(x, y, z);
}
}
}
error CS1955: Non-invocable member 'Transform.position' cannot be used like a method.