Exemplo n.º 1
0
    public override int DrawEffect(int xPos, int yPos, GUISkin skin)
    {
        yPos = base.DrawEffect(xPos, yPos, skin);
#if UNITY_EDITOR
        m_damage = EditorGUI.FloatField(new Rect(xPos + 150, yPos += 20, 200, 20), m_damage);
        EditorGUI.LabelField((new Rect(xPos, yPos, 180, 20)), new GUIContent("Total Damage: "), skin.label);

        m_dotType = (EDotType)EditorGUI.EnumPopup(new Rect(xPos + 150, yPos += 20, 200, 20), m_dotType);
        EditorGUI.LabelField((new Rect(xPos, yPos, 180, 20)), new GUIContent("Effect Type: "), skin.label);

        EditorUtility.SetDirty(this);
#endif
        return(yPos);
    }
Exemplo n.º 2
0
 public Note(ENote aNote, int aOctave, ENoteValue aNoteValue,
             EAccidental aAccidental, EDotType aDotType) : this(aNote, aOctave, aNoteValue, aAccidental)
 {
     DotType = aDotType;
 }
Exemplo n.º 3
0
 public DotEffect(DotEffect sideEffect) : base(sideEffect)
 {
     m_dotType = sideEffect.m_dotType;
     m_damage  = sideEffect.m_damage;
 }
Exemplo n.º 4
0
 public Rest(ERestValue aRestValue, EDotType aDotType) : this(aRestValue)
 {
     DotType = aDotType;
 }