Attacking And Health Script in C# Gives Error : NullReferenceException: Object reference not set to an instance of an object
İ searched all along the Unity Community and read all the questions and answers about it. But im kinda stupid. Please check this 2 strings where is the error.
Firing (Ateş means Firing in Turkish) Script : https://gist.github.com/ShockvaWe/37069232ffdde598ef4eae6f7ab235ce
Health (Can means Health in Turkish) Script : https://gist.github.com/ShockvaWe/e6496a99c4d4b804a33f6f80f673a85b
The Error İn Unity Console : NullReferenceException: Object reference not set to an instance of an object Ateş.Update () (at Assets/Ateş.cs:32)
I have tried to make this scripts from this tutorial : https://unity3d.com/learn/tutorials/projects/survival-shooter/player-health
Comment