void OnCollisionEnter(Collision collision) { if (_loaded && ((Time.time - _lastLigaseHitTime > hitRate) || !_isPursuing) && collision.gameObject.name.Equals("Tank")) { UnloadUbiquitinParticle(); _lastLoadTime = Time.time; _lastLigaseHitTime = Time.time; if (_substrate.CanBeUbiquinated) { if (ShipUbiquinated != null) { ShipUbiquinated(); } _substrate.AttachUbiquitin(); } MaxSpeed = _wanderSpeed; MaxAcceleration = _wanderAcceleration; _isPursuing = false; _pursuingAgent.Remove(this); } }