// Update is called once per frame void Update() { if (PlaneMovements.Dead == true && applyOnce == true) { data.ApplyHighestTravel(); applyOnce = false; } }