private void ResetGame() { NodeBehaviour.ResetNodes(); if (CurrentLevel) { CurrentLevel.ResetLevel(); } // Intersect m_YourSymbol.IntersectionWith(m_YourSymbol); // Unionize m_YourSymbol.UnionWith(CurrentLevel.StartingNode.GetComponentInChildren <NodeBehaviour>().m_Symbol); }
public void IncrementLevel() { if (_currentLevelIndex != Levels.Length - 1) { _currentLevelIndex++; // Disable past level CurrentLevel.CleanLightLines(); NodeBehaviour.ResetNodes(); CurrentLevel.gameObject.SetActive(false); CurrentLevel = Levels[_currentLevelIndex]; CurrentLevel.gameObject.SetActive(true); CurrentLevel.ResetLevel(); if (AOnChangeLevel != null) { AOnChangeLevel(); } } }
private void ResetGame() { NodeBehaviour.ResetNodes(); // Move back to START NODE }