void OnEnable() { effectLoader = target as EffectLoader; effectLoader.Init(); if (effectLoader.effectObj) { SpriteAnim spriteAnim = effectLoader.effectObj.GetComponent <SpriteAnim>(); spriteAnim.Awake(); } }
void OnEnable() { effectLoader = target as EffectLoader; effectLoader.Init(); if (effectLoader.effectObj) { SpriteAnim spriteAnim = effectLoader.effectObj.GetComponent <SpriteAnim>(); spriteAnim.Awake(); } }