You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
562 B
32 lines
562 B
using UnityEngine; |
|
using System.Collections; |
|
using System.Collections.Generic; |
|
|
|
namespace Fungus.Script |
|
{ |
|
|
|
[ExecuteInEditMode] |
|
public class Character : MonoBehaviour |
|
{ |
|
public string characterName; |
|
public Sprite characterImage; |
|
public SayDialog.DialogSide dialogSide; |
|
public Color characterColor; |
|
|
|
static public List<Character> activeCharacters = new List<Character>(); |
|
|
|
void OnEnable() |
|
{ |
|
if (!activeCharacters.Contains(this)) |
|
{ |
|
activeCharacters.Add(this); |
|
} |
|
} |
|
|
|
void OnDisable() |
|
{ |
|
activeCharacters.Remove(this); |
|
} |
|
} |
|
|
|
} |