public void EndGame(string type) { switch (type) { case "Death": mapControl.ResetMap(); playerControl.InitializeValues(); break; } }
void OnTriggerStay2D(Collider2D other) { if (other.gameObject.layer == 11) { if (!other.GetComponent <MoveObject>().isMoving) { playerControl.stats.currFloor += 1; mapScript.ResetMap(); gameControl.UpdateFog(); } } }