Exemplo n.º 1
0
    private void UpdateActionDisplayRehersalMode()
    {
        int count = gameState.targetList.Length;

        for (int i = 0; i < count; i++)
        {
            ActionDisplay.transform.GetChild(i + 1).gameObject.SetActive(true);
        }

        ActionLog log = gameState.actionLog;

        for (int i = 0; i < log.ActionCount(); i++)
        {
            GameObject l = ActionDisplay.transform.GetChild(i + 1).gameObject;
            l.GetComponentInChildren <Image>().sprite = gameState.checkedState;
        }
    }
Exemplo n.º 2
0
    private void UpdateActionDisplayRecallMode()
    {
        int count = gameState.targetList.Length;

        for (int i = 0; i < count; i++)
        {
            ActionDisplay.transform.GetChild(i + 1).gameObject.SetActive(false);
        }

        ActionLog log = gameState.actionLog;

        for (int i = 0; i < log.ActionCount(); i++)
        {
            string interactableLabel = log.iLog[i].label;
            string actionLabel       = log.iLog[i].actions[log.aLog[i]].label;

            GameObject g = ActionDisplay.transform.GetChild(i + 1).gameObject;
            g.SetActive(true);
            g.GetComponentInChildren <TextMeshProUGUI>().text = interactableLabel + ": " + actionLabel;
            g.GetComponentInChildren <Image>().sprite         = gameState.checkedState;
        }
    }