I am trying to get a component on the same game object but it keeps returning null.
Script 1 and a CharacterMotor are both attached to 1 game object. In Script 1 I am using the following to get the component.
But motor is always null. I even require the component for this script and it doesn't throw any errors using...
GetComponent returns null when the component exists
Script 1 and a CharacterMotor are both attached to 1 game object. In Script 1 I am using the following to get the component.
Code (CSharp):
GetComponent returns null when the component exists