D
D
DoZuRy2020-05-03 19:16:21
C++ / C#
DoZuRy, 2020-05-03 19:16:21

How to make a reference to an object in unity in C#?

Hello, can anyone help? In unity, the non-static method UnityEngine.Component.transform.get requires a reference to an object. The error appears on line 16 with error CS0120. Due to the fact that I just started learning C #, I don’t understand what needs to be added. If it's easy, please describe in more detail. Thanks in advance!
https://habrastorage.org/webt/5e/ae/eb/5eaeeb93d86... - link to code screen.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question