Everything is crumbling

hahahahaha
This commit is contained in:
Vincent Wheat 2022-03-04 14:09:33 -06:00
parent f62bb778a0
commit ffdc7092bf
2 changed files with 7733 additions and 49 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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");