mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-22 10:24:42 -05:00
Changed Player Stats and altered kick hit box
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user