mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-09-04 00:24:38 -05:00
Wallrun Updates
-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
This commit is contained in:
15
Assets/Scripts/PlayerScripts/ItemScripts/WallRunItem.cs
Normal file
15
Assets/Scripts/PlayerScripts/ItemScripts/WallRunItem.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/PlayerScripts/ItemScripts/WallRunItem.cs.meta
Normal file
11
Assets/Scripts/PlayerScripts/ItemScripts/WallRunItem.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 80dbcf4212f11a74ebd5289c2b5eb309
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user