public void Enter(FallingPlayer player) { m_Player = player; m_Animations.Play("JumpBoost"); m_StateStartTime = Time.realtimeSinceStartup; m_ActiveSpearThrow = false; }
public void Enter(FallingPlayer player) { m_InputDown = false; m_Player = player; m_Animations.Play("Idle"); m_JumpBoostLeftArrow.gameObject.SetActive(false); m_JumpBoostRightArrow.gameObject.SetActive(false); m_Player.InitFallMovement(); m_Player.InitSteerMovement(); VerticalScrollerUtils.StartScrolling(m_BGScroller, VerticalScrollerUtils.kFallingScrollSpeed); }
public void Enter(FallingPlayer player) { m_Player = player; m_Player.Spear.CancelRopeMovement(); GameObject clampedObject = m_Player.Spear.ClampedObject; //Set player to coordinate space of hatchee m_Player.transform.SetParent(clampedObject.transform); m_Player.transform.position = new Vector3(m_Player.transform.position.x, m_Player.transform.position.y, -2f); //Reeling in should be last, since clamping is going to likely put player //into the transform space of the clampee m_Player.Spear.ReelIn(() => { m_Animations.Play("Idle"); }); }