File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed
Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change 33using UnityEngine ;
44
55namespace RPG . Questing {
6- public class ConversationGoal : Goal {
7- public string Target ;
6+ public class ConversationGoal : Goal {
7+ public string Target ;
88
9- public ConversationGoal ( Stage stage , string target , string description ) {
10- Stage = stage ;
11- Target = target ;
12- Description = description ;
13- }
9+ public ConversationGoal ( Stage stage , string target , string description ) {
10+ Stage = stage ;
11+ Target = target ;
12+ Description = description ;
13+ }
1414
15- public override void Init ( ) {
16- base . Init ( ) ;
17- EventSystem . OnTalkedToNPC += TalkedToNPC ;
18- }
15+ public override void Init ( ) {
16+ base . Init ( ) ;
17+ EventSystem . OnTalkedToNPC += TalkedToNPC ;
18+ }
1919
20- private void TalkedToNPC ( DialogueInitiator npc ) {
21- if ( Stage . Active && npc . name . Contains ( Target ) ) {
22- Complete ( ) ;
23- EventSystem . OnTalkedToNPC -= TalkedToNPC ;
24- }
20+ private void TalkedToNPC ( DialogueInitiator npc ) {
21+ if ( Stage . Active && npc . name . Contains ( Target ) ) {
22+ Complete ( ) ;
23+ EventSystem . OnTalkedToNPC -= TalkedToNPC ;
24+ }
25+ }
2526 }
26- }
2727}
You can’t perform that action at this time.
0 commit comments