Пример #1
0
    private void UnloadConversationData(List <ConversationData> _conversations)
    {
        foreach (ConversationData _conversation in _conversations)
        {
            RememberConversation saveObject = Serializer.returnComponent <RememberConversation> (_conversation.objectID);

            if (saveObject != null)
            {
                saveObject.GetComponent <Conversation>().SetOptionStates(_conversation.optionStates);
                saveObject.GetComponent <Conversation>().SetOptionLocks(_conversation.optionLocks);
            }
        }
    }
Пример #2
0
    public override void OnInspectorGUI()
    {
        RememberConversation _target = (RememberConversation)target;

        if (_target.GetComponent <Conversation>() == null)
        {
            EditorGUILayout.HelpBox("This script expects a Conversation component!", MessageType.Warning);
        }

        SharedGUI();
    }