コード例 #1
0
        public void ReplaceChoice(ChoicesMadeType choice)
        {
            if (BunnySceneController.Instance != null)
            {
                BunnySceneController.Instance.ActivateZoner(choice);
            }

            _choicesMadeHistory[_currentChoiceIndex - 1] = choice;

            Debug.Log(_choicesMadeHistory[_currentChoiceIndex - 1]);
        }
コード例 #2
0
        public void AddChoice(ChoicesMadeType choice)
        {
            if (BunnySceneController.Instance != null)
            {
                BunnySceneController.Instance.ActivateZoner(choice);
            }
            _choicesMadeHistory.Add(choice);

            Debug.Log(_choicesMadeHistory[_currentChoiceIndex]);

            _currentChoiceIndex++;
        }
コード例 #3
0
        public void PerformCommFromCheck(ChoicesMadeType type)
        {
            switch (type)
            {
            case ChoicesMadeType.Good:
                _triggers[0].TriggerCommunication(_instance);
                break;

            case ChoicesMadeType.Neutral:
                _triggers[1].TriggerCommunication(_instance);
                break;

            case ChoicesMadeType.Bad:
                _triggers[2].TriggerCommunication(_instance);
                break;

            default:
                break;
            }
        }
コード例 #4
0
        public void ActivateZoner(ChoicesMadeType type)
        {
            _badZoner.SetActive(false);
            _neutralZoner.SetActive(false);
            _goodZoner.SetActive(false);

            switch (type)
            {
            case ChoicesMadeType.Good:
                _goodZoner.SetActive(true);
                break;

            case ChoicesMadeType.Neutral:
                _neutralZoner.SetActive(true);
                break;

            case ChoicesMadeType.Bad:
                _badZoner.SetActive(true);
                break;

            default:
                break;
            }
        }