Looking at the video the
player
object is an instance of the
GameObject
class, so it must be spelled with a capital 'G'. The other reference is a property of
transform.parent
and is spelled with a lower case 'g', as follows:
private GameObject player;
private void Start()
{
player = transform.parent.gameObject;
}
You need to check the tutorial again to see where the
GameObject
class is defined.