I followed a tutorial the Walkerboys and I got an error:
BCE0019: ‘life’ is not a member of ‘UnityEngine.Component’.
life is my var.
I copied everything from the tutorial and put this to call the variable from my Player Class “sPlayer”: other.GetComponent("sPlayer").life -= 1;
I’m also having the same error, but this time it is calling a function, under the tutorial scene manager.
I couldn’t call the function AddScore() to the bullet function (thats the projectile)
sceneManger.transform.GetComponent("sSceneManager").AddScore();