Пример #1
0
    public void StopAll()
    {
        if (!IsSimulating && IsCompiling)
        {
            StopAllCoroutines();
            CBM.StopAllCoroutines();
            CBM.PlayerActions.Clear();
            CBM.pointerObj.gameObject.SetActive(false);
            fillPlayerActions.UpdateCanvas();


            PlayerPointerObject.gameObject.SetActive(false);
            EnemyPointerObject.gameObject.SetActive(false);
            IsCompiling    = false;
            IsSimulating   = false;
            Timer.IsPaused = false;

            CodeCanvasCG.blocksRaycasts = true;
            CBM.GetPlayerMoveCount(MainFuncContent, 0);
            DebugMode();
        }
    }