protected void change_nl_fx(mario_fx fx) { if (m_type == mario_type.mt_charater) { for (int i = 0; i < m_nl_objs.Count; ++i) { if (m_nl_objs[i].m_min_speed != 0) { m_nl_objs[i].set_fx(fx); } m_nl_objs[i].change_nl_fx(fx); } } }
public void set_fx(mario_fx fx) { if (fx == m_fx) { return; } m_fx = fx; if (m_fx == mario_fx.mf_right) { set_scale(1, 1, 1); } else { set_scale(-1, 1, 1); } }
public override void change_way(mario_fx fx) { if (m_min_speed == 0) { return; } if (fx == mario_fx.mf_left) { m_velocity.x = -m_min_speed; } else { m_velocity.x = m_min_speed; } set_fx(fx); change_nl_fx(fx); }
public virtual void change_way(mario_fx fx) { }