Exemplo n.º 1
0
 public static void DestroyAnimatedObjectEffectInstance([NotNull] Animator2D instance)
 {
     if (null != s_instance)
     {
         s_animatedObjectEffectPool.Release(instance.get_gameObject());
     }
     else
     {
         Object.Destroy(instance.get_gameObject());
     }
 }
Exemplo n.º 2
0
 private void OnDisable()
 {
     if (null != m_animator2D)
     {
         DestroyUtility.Destroy(m_animator2D.get_gameObject());
     }
 }