Browse Source

Use #region to mark interface implementations

master
Christopher 9 years ago
parent
commit
2082e1e2e7
  1. 6
      Assets/Fungus/Narrative/Scripts/Character.cs
  2. 8
      Assets/Fungus/Narrative/Scripts/Commands/Menu.cs
  3. 8
      Assets/Fungus/Narrative/Scripts/Commands/Say.cs
  4. 8
      Assets/Fungus/UI/Scripts/Commands/SetText.cs
  5. 6
      Assets/Fungus/UI/Scripts/Commands/Write.cs
  6. 7
      Assets/Fungus/UI/Scripts/Writer.cs
  7. 6
      Assets/Fungus/UI/Scripts/WriterAudio.cs

6
Assets/Fungus/Narrative/Scripts/Character.cs

@ -59,9 +59,7 @@ namespace Fungus
activeCharacters.Remove(this);
}
//
// ILocalizable implementation
//
#region ILocalizable implementation
public virtual string GetStandardText()
{
@ -112,5 +110,7 @@ namespace Fungus
// String id for character names is CHARACTER.<Character Name>
return "CHARACTER." + nameText;
}
#endregion
}
}

8
Assets/Fungus/Narrative/Scripts/Commands/Menu.cs

@ -90,10 +90,8 @@ namespace Fungus
return new Color32(184, 210, 235, 255);
}
//
// ILocalizable implementation
//
#region ILocalizable implementation
public virtual string GetStandardText()
{
return text;
@ -114,5 +112,7 @@ namespace Fungus
// String id for Menu commands is MENU.<Localization Id>.<Command id>
return "MENU." + GetFlowchartLocalizationId() + "." + itemId;
}
#endregion
}
}

8
Assets/Fungus/Narrative/Scripts/Commands/Say.cs

@ -145,10 +145,8 @@ namespace Fungus
sayDialog.Stop();
}
//
// ILocalizable implementation
//
#region ILocalizable implementation
public virtual string GetStandardText()
{
return storyText;
@ -175,5 +173,7 @@ namespace Fungus
return stringId;
}
#endregion
}
}

8
Assets/Fungus/UI/Scripts/Commands/SetText.cs

@ -90,10 +90,8 @@ namespace Fungus
}
}
//
// ILocalizable implementation
//
#region ILocalizable implementation
public virtual string GetStandardText()
{
return text;
@ -114,5 +112,7 @@ namespace Fungus
// String id for Set Text commands is SETTEXT.<Localization Id>.<Command id>
return "SETTEXT." + GetFlowchartLocalizationId() + "." + itemId;
}
#endregion
}
}

6
Assets/Fungus/UI/Scripts/Commands/Write.cs

@ -118,9 +118,7 @@ namespace Fungus
GetWriter().Stop();
}
//
// ILocalizable implementation
//
#region ILocalizable implementation
public virtual string GetStandardText()
{
@ -142,5 +140,7 @@ namespace Fungus
// String id for Write commands is WRITE.<Localization Id>.<Command id>
return "WRITE." + GetFlowchartLocalizationId() + "." + itemId;
}
#endregion
}
}

7
Assets/Fungus/UI/Scripts/Writer.cs

@ -895,9 +895,8 @@ namespace Fungus
}
}
//
// IDialogInputListener implementation
//
#region IDialogInputListener implementation
public virtual void OnNextLineEvent()
{
inputFlag = true;
@ -907,5 +906,7 @@ namespace Fungus
NotifyInput();
}
}
#endregion
}
}

6
Assets/Fungus/UI/Scripts/WriterAudio.cs

@ -171,9 +171,7 @@ namespace Fungus
targetAudioSource.volume = Mathf.MoveTowards(targetAudioSource.volume, targetVolume, Time.deltaTime * 5f);
}
//
// IWriterListener implementation
//
#region IWriterListener implementation
public virtual void OnInput()
{
@ -247,5 +245,7 @@ namespace Fungus
}
}
}
#endregion
}
}
Loading…
Cancel
Save