コード例 #1
0
    public override void Initialize()
    {
        base.Initialize();

        _input = parentConversation.controlPlayer.GetBehaviour <Actor_PlayerInput>();

        Actor_Conversation speakingActor   = Actor_Conversation.GetActorByCharacterData(_characterData);
        Actor_Conversation speakingToActor = Actor_Conversation.GetActorByCharacterData(_characterSpeakingTo);

        parentConversation.AddActor(speakingActor);
        parentConversation.AddActor(speakingToActor);

        //speakingActor.FaceCharacter(speakingToActor);
        //speakingToActor.FaceCharacter(speakingActor);
    }
コード例 #2
0
    public override void Initialize()
    {
        base.Initialize();
        _input           = parentConversation.controlPlayer.GetBehaviour <Actor_PlayerInput>();
        _speakingActor   = null;
        _speakingToActor = null;

        if (_characterData != null)
        {
            _speakingActor = Actor_Conversation.GetActorByCharacterData(_characterData);
            parentConversation.AddActor(_speakingActor);
        }

        if (_characterSpeakingTo != null)
        {
            _speakingToActor = Actor_Conversation.GetActorByCharacterData(_characterSpeakingTo);
            parentConversation.AddActor(_speakingToActor);
        }
    }