private void OnTriggerEnter(Collider other) { if (other.CompareTag("Player") && !done) { if (mp.PlayerRobotTransform != null) { sm.GetSpawn(spawnHm, spawnRbt); } else { sm.GetSpawn(spawnHm, spawnRbt); } AllSavesInteraction.Instance.SavesData(); sm.AiCheck(); cm.ActiveCheckpointText(); done = true; } }