示例#1
0
    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);
    }
示例#2
0
    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();
            }
        }
    }
示例#3
0
    private void ResetGame()
    {
        NodeBehaviour.ResetNodes();

        //  Move back to START NODE
    }