Пример #1
0
    public void OnTerminalIncomplete(EventInfo info)
    {
        TerminalPuzzleInfo tpi = (TerminalPuzzleInfo)info;

        if (tpi?.terminalGrid != terminalGravityGrid)
        {
            return;
        }
        gravity = gravityBase;
    }
Пример #2
0
    public void OnIncomplete(EventInfo info)
    {
        TerminalPuzzleInfo tpi = (TerminalPuzzleInfo)info;

        if (tpi?.terminalGrid != grid)
        {
            return;
        }
        screenModel.GetComponent <Renderer> ().material.color = Color.white;
    }
Пример #3
0
    private void internalOnIncomplete(EventInfo info)
    {
        TerminalPuzzleInfo tpi = (TerminalPuzzleInfo)info;

        if (tpi?.terminalGrid != terminalGrid)
        {
            return;
        }
        OnIncomplete(info);
    }
Пример #4
0
    public void OnComplete(EventInfo info)
    {
        TerminalPuzzleInfo tpi = (TerminalPuzzleInfo)info;

        if (tpi?.terminalGrid != grid)
        {
            return;
        }
        ToggleActive(false);
        screenModel.GetComponent <Renderer> ().material.color = Color.green;
    }