I am currently trying to make it so that I can switch between the targets in my game. When I try and access the AICharacterControl script it won’t let me. I also cannot access the ThirdPersonCharacter script. Using GetComponent does not work. Is there anything else I can do?
Envelope your code with this namespace:
namespace UnityStandardAssets.Characters.ThirdPerson
{
your class{
AICharacterControl aiCharacterControl;
}
}
I have fixed it. I just moved the code into the script I was trying to access and used that to access the rest of my code.
Thanks @KaiserOman , works great but it is not so clear to read for me. Another solution is to declare the namespace at the beginning:
using UnityStandardAssets.Characters.ThirdPerson;
Works well too!