Exemplo n.º 1
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else
        {
            throw new System.Exception("Duplicate input manager found");
        }

        //Set controls for current platform
        if (Application.isMobilePlatform)
        {
            controls = mobileControls;
        }
        else
        {
            controls = pcControls;
        }
    }
Exemplo n.º 2
0
 public static void ResetToTextAssetDefaults(TextAsset ta)
 {
     bindings = new ControlBindings();
     LoadFromTextAsset(ta);
     bindings.DeleteAllCustoms();
 }