public override void Spawn() { base.Spawn(); m_XMovement.SetInitialPos(); m_YMovement.SetInitialPos(); m_BobMovement.Base = base.transform.position.y; }
public override void Spawn() { base.Spawn(); reset(); m_XMovement.Initialize(mg_if_EObjectsMovement.MOVEMENT_AUTO, m_variables.FishSpeedX, m_variables.FishSpeedRangeX); m_XMovement.SetInitialPos(); m_YMovement.Initialize(m_variables.FishSpeedY, m_variables.FishSpeedRangeY); m_YMovement.SetInitialPos(); }
public override void Spawn() { base.Spawn(); m_XMovement.Initialize(mg_if_EObjectsMovement.MOVEMENT_AUTO, m_variables.ExtraLifeSpeed, m_variables.ExtraLifeSpeedRange); m_XMovement.SetInitialPos(); m_YMovement.Initialize(0f, 0f); m_YMovement.SetInitialPos(); m_BobMovement.Base = base.transform.position.y; m_lifeGiven = false; m_animator.enabled = true; }
public void Initialize(mg_if_EObjectsMovement p_movement) { GameObject gameObject = base.transform.Find("object_size").gameObject; gameObject.SetActive(value: true); m_XMovement.Initialize(p_movement, m_variables.SharkFarSpeed, m_variables.SharkFarSpeedRange); m_YMovement.Initialize(0f, 0f); gameObject.SetActive(value: false); SetMouthState(p_mouthOpen: false); m_XMovement.SetInitialPos(); m_YMovement.SetInitialPos(); }