Changed Player Stats and altered kick hit box

This commit is contained in:
Melbyj1125
2021-12-13 13:06:47 -06:00
parent e8710ba6d9
commit 3c3708f869
19 changed files with 217 additions and 122 deletions

View File

@@ -59,6 +59,7 @@ public class dKickController : NetworkBehaviour
leg.SetActive(true);
yield return new WaitForSeconds(waitTime);
isKicking = false;
leg.GetComponent<Collider>().isTrigger = false;
leg.SetActive(false);
}
@@ -74,6 +75,7 @@ public class dKickController : NetworkBehaviour
Vector3 direction = this.transform.forward;
Debug.Log(direction);
collision.rigidbody.AddForce(direction * pStats.KickPow, ForceMode.Impulse);
leg.GetComponent<Collider>().isTrigger = true;
}
if (collision.transform.CompareTag("destroyable") && myCollider == leg.GetComponent<Collider>()){
collision.transform.gameObject.GetComponent<BreakableBlock>().damage(pStats.KickPow);