AddComponent returns the component that you’ve added, so you don’t need to use GetComponent after (especially multiple times). Instead just store the returned reference in a temporary variable, as multiple GetComponent calls is slower. Unless you’re a lot of this, the performance difference might not be noticeable, but there’s no reason not to re-use a single reference.