private void Awake() { if (Instance == null) { Instance = this; if (PresentationMode) { Test(); } else { int qubits = Mathf.CeilToInt(Mathf.Log(InputTexture.width * InputTexture.height) / Mathf.Log(2)); Initialize(qubits, 15); } } else { Destroy(this); } }
void OnEnable() { targetScript = target as GateUIController; }