ok it seems enabling and disabling components is done differently now, there's a nice youTube tutorial by Unity that explains how I should have done it:
ActiveNPC.gameObject.GetComponent().enabled=false;
I kept the question up for anyone else having the same problem
↧