I get CS0201 Only assignment, call, increment, decrement, await, and new objct expressions can be used as a statement error on line 25.
I’ve got no idea why.
using Pixyz.Utils;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class InputTest : MonoBehaviour
{
public GameObject[] objects;
public bool blActive;
public int aIndex;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if (OVRInput.Get(OVRInput.Button.One))
{
for (int i = 0; i < objects.Length; i++)
{
blActive != objects[i].activeSelf;
objects[i].SetActive(blActive);
Debug.LogError("You Pressed Button One");
}
}
}
}