void OnTriggerEnter2D(Collider2D collision) { if (collision.name == "Player") { //saveSystemManager.OnHitSaveData(collision); mapManager.ActivatePhase(mapManager.phase); mapManager.phase++; } }
void OnTriggerEnter2D(Collider2D collision) { mapManager.ActivatePhase(mapManager.phase); mapManager.phase++; //will be uncoment when we will reactivate the save system //if (collision.tag == "Player") //{ // //saveSystemManager.OnHitSaveData(collision); //} }