public void Setup(MosquitoManager manager)
    {
        _position     = Random.insideUnitSphere * _swarmSize;
        _position.z   = 0f;
        _moveVector   = Random.insideUnitSphere;
        _moveVector.z = 0f;
        _manager      = manager;

        _targetPosition = _position;
        //_t.localPosition = _position;
    }
Example #2
0
 void Awake()
 {
     instance = this;
 }