Всем привет я изучал Unity3d по урокам ogasoda ну вот дошел до Unity3D-C-RPG-0025-HealthBarSystem написал все скрипты по видео и вот запустил сначала вылезла такая ошибка
NullReferenceException
UnityEngine.GameObject.GetComponent[MainHUDClass] () (at C:/BuildAgent/work/842f9557127e852/Runtime/ExportGenerated/Editor/UnityEngineGameObject.cs:18)
TargettingExt.Start () (at Assets/Script/TargettingExt.cs:17)
потом после нажатия кнопки Tab вылезло 2 ошибки такого рода
NullReferenceException: Object reference not set to an instance of an object
TargettingExt.SelectTarget () (at Assets/Script/TargettingExt.cs:65)
TargettingExt.TargetEnemy () (at Assets/Script/TargettingExt.cs:53)
TargettingExt.Update () (at Assets/Script/TargettingExt.cs:23)
и
NullReferenceException: Object reference not set to an instance of an object
TargettingExt.DeSelectTarget () (at Assets/Script/TargettingExt.cs:71)
TargettingExt.TargetEnemy () (at Assets/Script/TargettingExt.cs:50)
TargettingExt.Update () (at Assets/Script/TargettingExt.cs:23)
после нажатия ЛКП вылазит такая ошибка
UnassignedReferenceException: The variable target of 'PlayerAttackExt' has not been assigned.
You probably need to assign the target variable of the PlayerAttackExt script in the inspector.
PlayerAttackExt.Attacker () (at Assets/Script/PlayerAttackExt.cs:32)
PlayerAttackExt.Update () (at Assets/Script/PlayerAttackExt.cs:24)
3 часа просидел в раздумьях всё по 3 раза проверил вроде бы всё правильно, но тогда б не было ошибок. Помогите пожалуйста разобраться с проблемой.