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
16 lines
271 B
C#
16 lines
271 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class WallRunItem : Item
|
|
{
|
|
public void Equip(PlayerStats p){
|
|
p.HasWallrun = true;
|
|
}
|
|
|
|
public void Unequip(PlayerStats p)
|
|
{
|
|
p.HasWallrun = false;
|
|
}
|
|
}
|