|
|
|
|
|
|
if (_endDialogueEvent != null) |
|
|
|
{ _endDialogueEvent.OnEventRaised += EndDialogue; } |
|
|
|
if (_startStepEvent != null) |
|
|
|
{ _startStepEvent.OnEventRaised += CheckStepInvolvment; } |
|
|
|
{ _startStepEvent.OnEventRaised += CheckStepInvolvement; } |
|
|
|
if (_interactionEvent != null) |
|
|
|
{ _interactionEvent.OnEventRaised += InteractWithCharacter; } |
|
|
|
if (_winDialogueEvent != null) |
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
void CheckStepInvolvment(StepSO step) |
|
|
|
void CheckStepInvolvement(StepSO step) |
|
|
|
{ |
|
|
|
if(_actor == step.Actor) |
|
|
|
{ |
|
|
|