Exemplo n.º 1
0
 public override void Spawn()
 {
     base.Spawn();
     m_XMovement.SetInitialPos();
     m_YMovement.SetInitialPos();
     m_BobMovement.Base = base.transform.position.y;
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 public override void Spawn()
 {
     base.Spawn();
     m_XMovement.Initialize(m_movement, m_variables.CrabSpeed, m_variables.CrabSpeedRange);
     m_XMovement.SetInitialPos();
     CrabState  = mg_if_ECrabState.STATE_ENTERING_1;
     m_waitTime = m_variables.CrabWaitTime;
     MinigameManager.GetActive().PlaySFX("mg_if_sfx_CrabWalk");
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
        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();
        }
Exemplo n.º 6
0
        public override void Spawn()
        {
            base.Spawn();
            m_XMovement = base.gameObject.GetComponent <mg_if_XMovement>();
            m_XMovement.Initialize(mg_if_EObjectsMovement.MOVEMENT_AUTO, m_variables.SharkNearSpeed, m_variables.SharkNearSpeedRange);
            m_XMovement.SetInitialPos();
            Vector2 vector = base.transform.position;

            vector.y = 0f - MinigameManager.GetActive <mg_IceFishing>().MainCamera.orthographicSize;
            base.transform.position = vector;
            MinigameManager.GetActive().PlaySFX("mg_if_sfx_SharkSwim");
        }