ThirdPersonController doesn’t work
Assets/Standard Assets/Utility/EventSystemChecker.cs(18,55): error CS1061: Type ‘UnityEngine.EventSystems.StandaloneInputModule’ does not contain a definition for ‘forceModuleActive’ and no extension method ‘forceModuleActive’ of type ‘UnityEngine.EventSystems.StandaloneInputModule’ could be found (are you missing a using directive or an assembly reference?)
using System;
using System.Collections;
using UnityEngine;
using UnityEngine.EventSystems;
public class EventSystemChecker : MonoBehaviour
{
//public GameObject eventSystem;
// Use this for initialization
void Awake ()
{
if(!FindObjectOfType<EventSystem>())
{
//Instantiate(eventSystem);
GameObject obj = new GameObject("EventSystem");
obj.AddComponent<EventSystem>();
obj.AddComponent<StandaloneInputModule>().forceModuleActive = true;
obj.AddComponent<TouchInputModule>();
}
}
}
the error is here forceModuleActive = true;