Ejemplo n.º 1
0
    private void Start()
    {
        Spell component = base.GetComponent <Spell>();

        if (component == null)
        {
            base.enabled = false;
        }
        this.m_SuperSpell    = component.GetSuperSpellParent();
        this.m_ImpactSound   = base.GetComponent <AudioSource>();
        this.m_ImpactObjects = new List <GameObject>();
    }
Ejemplo n.º 2
0
 private static object Extract(SuperSpell spell)
 {
     if (spell == null) return null;
     return new
     {
         name = spell.name,
         tag = spell.tag,
         spellType = spell.GetSpellType(),
         location = spell.GetLocation(),
         superSpell = Extract(spell.GetSuperSpellParent()),
         activeStateList = Extract(spell.GetActiveStateList()),
         locationTransformName = spell.GetLocationTransformName(),
         powerTaskList = Extract(spell.GetPowerTaskList()),
     };
 }