i just got unity and i am having issues with some of the scripts that came with it for the first person controller(ActivateTrigger.cs)
case Mode.Activate:
targetGameObject.active(); true;
break;
case Mode.Enable:
if (targetBehaviour != null)
targetBehaviour.enabled = true;
break;
case Mode.Animate:
targetGameObject.animation.Play ();
break;
case Mode.Deactivate:
target GameObject;SetActive() = false;
break;
-the first issue is with targetGameObject.active(); true; it says its a non-invocable
member ‘Unity Engine.GameObject.active’ cannot beused like a method
-second is with target GameObject;SetActive() = false; says ‘ActivateTrigger.target’ is a ‘field’ but is used like a ‘type’