Browse Source

Changed PortraitOptions and PortraitState to use class instead of struct. MoonSharp doesn't work well with structs.

master
Christopher 9 years ago committed by lealeelu
parent
commit
19cbab7112
  1. 5
      Assets/Fungus/Narrative/Scripts/PortraitController.cs

5
Assets/Fungus/Narrative/Scripts/PortraitController.cs

@ -13,7 +13,7 @@ using MoonSharp.Interpreter;
namespace Fungus namespace Fungus
{ {
public struct PortraitOptions public class PortraitOptions
{ {
public Character character; public Character character;
public Character replacedCharacter; public Character replacedCharacter;
@ -38,7 +38,6 @@ namespace Fungus
/// <param name="useDefaultSettings">Will use stage default times for animation and fade</param> /// <param name="useDefaultSettings">Will use stage default times for animation and fade</param>
public PortraitOptions(bool useDefaultSettings = true) public PortraitOptions(bool useDefaultSettings = true)
{ {
// Defaults usually assigned on constructing a struct
character = null; character = null;
replacedCharacter = null; replacedCharacter = null;
portrait = null; portrait = null;
@ -65,7 +64,7 @@ namespace Fungus
} }
} }
public struct PortraitState public class PortraitState
{ {
public bool onScreen; public bool onScreen;
public bool dimmed; public bool dimmed;

Loading…
Cancel
Save