1 using UnityEngine;
2
3 public class FolowCamera : MonoBehaviour
4 {
5 public transform player;
6 public Vector3 offset;
7
8 // Update is called once per frame
9 void Update()
10 {
11 transform.position = player.position + offset;
12
13 }
14 }
ошибка в Unity:
Assets\FolowCamera.cs(5,12): error CS0246: The type or namespace name 'transform' could not be found (are you missing a using directive or an assembly reference?)