mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-03-22 01:34:22 -05:00
-WallRunItem made for equipping/unequipping wall run -Added Method to PlayerInventory for trying to add special items as items -Added better method for checking if player isGrounded to PlayerMovement -Added a setup file for preconfiguring player loadouts -Added complex wallrun file as a work in progress to allow for robust polished wallrun mechanic
19 lines
444 B
C#
19 lines
444 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Setup : MonoBehaviour
|
|
{
|
|
private PlayerStats pstats;
|
|
public bool hasWallRun;
|
|
[Range( 1, 50)]
|
|
public float maxSpeed;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
pstats = this.gameObject.GetComponent<PlayerStats>();
|
|
pstats.HasWallrun = hasWallRun;
|
|
pstats.MaxVel = maxSpeed;
|
|
}
|
|
}
|