using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PortalManager : MonoBehaviour
{
public Transform APos;
public Transform BPos;
private void OnTriggerEnter(Collider col);
{
if (col.CompareTag("Portal Blue"))
{
CharacterControl cc = GetComponent<CharacterController>();
cc.enabled = false;
transform.position = BPos.transform.position;
transform.rotation = new Quaternion(transform.rotationtion.x, Bpos.rotation.y, transform.rotation.z, transform.rotation.w);
cc.enabled = true;
}
}
if (col.CompareTag("Portal Orange"))
{
CharacterController cc = GetComponent<CharacterController>();
cc.enabled = false
transform.position =APos.transform.position
transform.rotation =new Quaternion(transform.rotation.x, APos.rotation.y, transform.rotation.z, transform.rotation.w);
cc.enabled = true;
}
}
}
I get "error CS1519:Invalid token '{' in class,struct,or interface member declaration'with this scri
Bro you already have a post on this, stick to that one, don’t create a new post for every character you missed or added, or typo.