示例#1
0
 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);
     }
 }
示例#2
0
 void OnEnable()
 {
     targetScript = target as GateUIController;
 }