コード例 #1
0
    protected void OnGameEnd()
    {
        game.OnGameEnd.RemoveListener(OnGameEnd);
        Flowchart flowchart = GetFlowchart();
        Block     targetBlock;

        if (game.GetSucess())
        {
            targetBlock = succededBlock;
        }
        else
        {
            targetBlock = failedBlock;
        }

        if (flowchart.SelectedBlock == ParentBlock)
        {
            flowchart.SelectedBlock = targetBlock;
        }
        flowchart.StartCoroutine(CallBlock(targetBlock));
    }