I’ve looked for information on this but I still have lots of doubts. Imagine we instantiate an object with a “Movement” component in it. What is the difference between this three:
Movement movement = Instantiate(anObject).gameObject.GetComponent<Movement>();
Movement movement = Instantiate(anObject) as Movement;
Movement movement = (Movement)Instantiate(anObject);