// Update is called once per frame void Update() { if (currentEvenement != null && currentEvenement.GetEventType() != Evenement.EventType.LOST_OBJECT) { currentEvenement.SetVelocity(); } else if (currentEvenement != null && currentEvenement.GetEventType() == Evenement.EventType.LOST_OBJECT) { currentEvenement.transform.position = player.transform.position; } if (levelFinised) { Destroy(gameObject); } }