mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-04-26 02:00:54 -05:00
Everything is crumbling
hahahahaha
This commit is contained in:
parent
f62bb778a0
commit
ffdc7092bf
File diff suppressed because it is too large
Load Diff
|
|
@ -10,6 +10,11 @@ public class CrumblingPlatform : NetworkBehaviour
|
|||
private MeshRenderer mesh;
|
||||
private BoxCollider[] boxColliders;
|
||||
|
||||
[SerializeField]
|
||||
public float crumbleTime = 0.25f;
|
||||
[SerializeField]
|
||||
public float respawnTime = 2.0f;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
mesh = gameObject.GetComponent<MeshRenderer>();
|
||||
|
|
@ -32,11 +37,11 @@ public class CrumblingPlatform : NetworkBehaviour
|
|||
IEnumerator DeleteCooldown()
|
||||
{
|
||||
//Debug.Log("Crumbling");
|
||||
yield return new WaitForSecondsRealtime(.25f);
|
||||
yield return new WaitForSecondsRealtime(crumbleTime);
|
||||
ChangeCrublingPlatformsStateServerRPC(false);
|
||||
|
||||
//Debug.Log("Crumbled");
|
||||
yield return new WaitForSecondsRealtime(2.0f);
|
||||
yield return new WaitForSecondsRealtime(respawnTime);
|
||||
ChangeCrublingPlatformsStateServerRPC(true);
|
||||
|
||||
//Debug.Log("Respawned Platform");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user