Hi! My problem is I’m going to disable script from his code. It’s easy to make. But I’ve got 2 same script in 1 gameObject. When I use this:
gameObject.GetComponent<StartPosition>().enabled = false;
I disable second script. So i tried this:
gameObject.GetComponent<this>().enabled = false;
But it isn’t working (compile fails). Have you got any other ideas to disable script?