mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-08-23 10:54:24 -05:00
Slime Temp and Bug fixes
>Fixed some bakes with the Hail >Fixed the movement bugs with the king's movement >Added the Slime in a semi-functional state
This commit is contained in:
@@ -8,16 +8,18 @@ public class Goo : MonoBehaviour
|
||||
|
||||
void FixedUpdate() {
|
||||
Lifetime++;
|
||||
if(Lifetime == 550) {
|
||||
if(Lifetime == 950) {
|
||||
Destruction();
|
||||
}
|
||||
}
|
||||
|
||||
//Makes the player sliperly whenever they step on the goo
|
||||
void OnTriggerEnter(Collider other) {
|
||||
Debug.Log("Slippy!");
|
||||
GameObject player = other.gameObject;//Turns the collider into a game object
|
||||
player.GetComponent<PlayerStats>().Traction = 1.5f;//Make it slippy
|
||||
if (other.tag == "Player") {
|
||||
Debug.Log("Slippy!");
|
||||
GameObject player = other.gameObject;//Turns the collider into a game object
|
||||
player.GetComponent<PlayerStats>().Traction = 1.5f;//Make it slippy
|
||||
}
|
||||
}
|
||||
|
||||
void Destruction() {
|
||||
|
||||
Reference in New Issue
Block a user