Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     _randomProvider = FindObjectOfType <QASMRandomProvider>();
     _randomProvider.GenerateFloatPool(128, (fpool) => {
         _randomProvider.GenerateBoolPool(128, (bpool) => {
             _timeDiscount     = 0;
             _qbitStateRandoms = bpool;
             _spawnRandoms     = fpool;
             StartCoroutine(SpawnPeriodically());
         });
     });
 }
Beispiel #2
0
    void Start()
    {
        _mesh = GetComponent <MeshFilter>().mesh;

        _verticesSrc          = _mesh.vertices;
        _currentVertices      = _mesh.vertices;
        _verticesTarget       = new Vector3[_currentVertices.Length];
        _verticesLastPosition = new Vector3[_currentVertices.Length];

        _randomProvider = FindObjectOfType <QASMRandomProvider>();

        StartCoroutine(ChangeVerticesPosition());
    }