feat: add test shurken

This commit is contained in:
Chris
2026-01-10 21:03:49 -05:00
parent 49862b5de1
commit cfc0096902
40 changed files with 1262 additions and 221 deletions

View File

@@ -0,0 +1,6 @@
namespace Reset.Core{
public enum CombatType{
Melee = 0,
Ranged = 1
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: eb3157c88aaa41f8b0b20d4690bb1459
timeCreated: 1767997846

View File

@@ -0,0 +1,7 @@
using Reset.Core;
namespace Reset.Units{
public class PlayerCombat : UnitCombat{
public CombatType currentCombatType;
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: e2b74fc5d4eb483bb4e637c3be6353b2
timeCreated: 1767998040

View File

@@ -36,10 +36,18 @@ namespace Reset.Units{
currentWeaponItem.transform.rotation = (Unit.Animation as PlayerAnimation).rightHand.rotation * Quaternion.Euler(meleeWeapon.handRotationOffset);
Debug.Log(currentWeapon);
//
(currentWeapon as Weapon).AddActorScript();
//
// Unit.Graph.SendEvent("Draw Weapon");
}
public GameObject GetCurrentWeaponItem(){
return currentWeaponItem;
}
public void OnHolsterWeapon(){
Destroy(currentWeaponItem);
currentWeaponItem = null;

View File

@@ -1,5 +1,6 @@
using System;
using UnityEngine;
using UnityEngine.Rendering;
namespace Reset.Units{
public class UnitAnimation : UnitComponent{
@@ -30,6 +31,11 @@ namespace Reset.Units{
// }
modelAnimator.SetFloat("Move Direction X", moveSpeed);
modelAnimator.SetFloat("Gravity", Unit.Movement.resolvedMovement.gravity);
modelAnimator.SetBool("Grounded", Physics.Raycast(transform.position, Vector3.down, .2f));
Debug.Log(Unit.Movement.GetGrounded());
}
private void LateUpdate(){

View File

@@ -359,6 +359,10 @@ namespace Reset.Units{
public Quaternion GetResolvedRotation(){
return resolvedMovement.rotation;
}
public bool GetGrounded(){
return controller.isGrounded;
}
[Button("Initialize Settings", ButtonHeight = 30), PropertySpace(10,5 )]
void InitAllSettings(){