public static void SetEnemyEncounter(EnemyEncounter ee) { currentEncounter = ee; gm.restartPoint = currentEncounter.restartPoint.position; prevHealth = pc.GetHealth(); prevEdge = pc.GetEdge(); }
void Update() { if (enableDebugMenu == true) { debugMenu.SetActive(true); } else if (enableDebugMenu == false) { debugMenu.SetActive(false); } if (hpScript != null) { hpScript.health = pc.GetHealth(); hpScript.edge = pc.GetEdge(); } }