Answer the question
In order to leave comments, you need to log in
Is there a replacement for this type?
The question is a little silly, but is there an alternative for this line with only Rigidbody2D
GetComponent<Rigidbody>().rotation = (Quaternion) stream.ReceiveNext();
Answer the question
In order to leave comments, you need to log in
can be done like this:
Rigidbody rb;
void Start():
rb = GetComponent<Rigidbody>()
rb.rotation = (Quaternion) stream.ReceiveNext();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question