void Start() { Speed = 8f; Layer = LayerMask.GetMask("Floor"); CameraType = Score.MyType; if (CameraType == Score.CameraType.FPS) { FPS = Camera.main.GetComponent <Camera>(); Cursor.visible = false; } }
void Awake() { Target = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>(); SelectedType = Score.MyType; }