// Use this for initialization void Start() { rb = GetComponent <Rigidbody2D>(); playerWeight = rb.mass; jumpForceVector = new Vector2(0.0f, playerWeight * jumpForceMultiplier); moveForceVector = new Vector2(playerWeight * moveForceMultiplier, 0.0f); moveSlopeExtraForceVector = new Vector2(0.0f, playerWeight * moveForceMultiplier * 1.5f); dodgeForceVector = new Vector2(playerWeight * dodgeForce, 0.0f); animator = GetComponent <Animator>(); grappleManager = GetComponent <GrappleManager>(); lastState = playerState.PlayerIdle; lastPulledInTime = lastLetOutTime = 0.0f; }
// Use this for initialization void Start() { grappleManager = GetComponent <GrappleManager>(); playerMovement = GetComponent <PhysicsPlayerMovement>(); ammo = maxAmmo; }