Mabel Amber MabelAmber · She/Her

helo wavey

i mainly do stuff with unity

cool stuff

SecondaryMotion

A secondary motion system for BONELAB.

UnityPackager

A CLI tool to create .unitypackage files without needing Unity itself.

HourOfArrival

A Year Zero revival project

MabelsShaders

Various shaders for SLZ URP

other cool stuff

this guy

reznor

this album

artisresistance

look at these great method names

[ServerRpc(RequireOwnership = false)]
public void ChallengerExplosionServerRpc()
{
    _willExplode.Value = true;
    ChallengerExplosionClientRpc();
}

[ClientRpc]
public void ChallengerExplosionClientRpc()
{
   StartCoroutine(ChallengerExplosion());
   _exploding = true;
}


private IEnumerator ChallengerExplosion()
{
   yield return new WaitForSeconds(1f);

   _audioSource.PlayOneShot(explodeNoise, 1);
   Utilities.PlayAudibleNoise(_audioSource, explodeNoise, transform.position, 17f, 1, isInElevator);

   yield return new WaitForSeconds(timeBeforeExplosion);

   Utilities.CreateExplosion(transform.position, true, 100, 0f, 6.4f);

   yield return new WaitForSeconds(2f);

   if (IsServer) gameObject.GetComponent<NetworkObject>().Despawn();
}