What could be the following: the script hangs on the object, does it turn off when the scene starts? that is, enable = false, manipulations with script activity are not registered anywhere

  • one
    манипуляции с Π°ΠΊΡ‚ΠΈΠ²Π½ΠΎΡΡ‚ΡŒΡŽ скрипта Π½ΠΈΠ³Π΄Π΅ Π½Π΅ прописана - it means it is still registered. Turn on debugging and go ahead ... Hint: you can set conditions in the debugger, for example, trigger a stop when the object is disabled - Alexey Shimansky
  • As the previous commentator wrote: use debugging. If there are any problems with this, you can even simply type in the Start () in OnEnable () something like Debug.Log ("<the name of the method you are calling> script.enamble =" + this.enable); Although it is better to really put just a stopping point. I suspect that either the wrong script is connected, or somewhere else you turn it off. - DarkOwl

0