Example #1
0
    private void Awake()
    {
        controls = new AmongCars();

        if (Instance == null)
        {
            instance = this;
        }
        else if (Instance != this)
        {
            Debug.LogError("More than one active GvrEditorEmulator instance was found in your " +
                           "scene.  Ensure that there is only one active GvrEditorEmulator.");
            this.enabled = false;
            return;
        }
    }
Example #2
0
 protected void Awake() => controls = new AmongCars();