public void Extinguish() { if (_mallowState == Marshmallow.MallowState.Burning) { _fireRenderer.enabled = false; _mallowState = Marshmallow.MallowState.Default; } }
public void RemoveMallow() { _smokeParticles.Stop(); _fireRenderer.enabled = false; _mallowRenderer.enabled = false; _mallowState = Marshmallow.MallowState.Gone; enabled = false; }
public void Shrivel() { if (_mallowState == Marshmallow.MallowState.Burning) { _initShrivelTime = Time.time; _mallowState = Marshmallow.MallowState.Shriveling; } }
public void Burn() { if (_mallowState == Marshmallow.MallowState.Default) { _fireRenderer.enabled = true; _toastedFraction = 1f; _initBurnTime = Time.time; _mallowState = Marshmallow.MallowState.Burning; } }
public void SpawnMallow() { transform.localPosition = new Vector3(0f, 0f, 0.3f); transform.localScale = Vector3.one; _smokeParticles.Stop(); _fireRenderer.enabled = false; _toastedFraction = 0f; _mallowRenderer.enabled = true; _mallowState = Marshmallow.MallowState.Default; enabled = true; }
public static bool Marshmallow_Shrivel( ref Marshmallow.MallowState ____mallowState, ref float ____initShrivelTime) { if (____mallowState == Marshmallow.MallowState.Burning) { ____initShrivelTime = Time.time; ____mallowState = Marshmallow.MallowState.Shriveling; QSBEventManager.FireEvent(EventNames.QSBMarshmallowEvent, MarshmallowEventType.Shrivel); } return(false); }
public static bool Marshmallow_RemoveMallow( ParticleSystem ____smokeParticles, MeshRenderer ____fireRenderer, MeshRenderer ____mallowRenderer, ref Marshmallow.MallowState ____mallowState, Marshmallow __instance) { ____smokeParticles.Stop(); ____fireRenderer.enabled = false; ____mallowRenderer.enabled = false; ____mallowState = Marshmallow.MallowState.Gone; __instance.enabled = false; QSBEventManager.FireEvent(EventNames.QSBMarshmallowEvent, MarshmallowEventType.Remove); return(false); }
public static bool Marshmallow_Burn( ref Marshmallow.MallowState ____mallowState, MeshRenderer ____fireRenderer, ref float ____toastedFraction, ref float ____initBurnTime, PlayerAudioController ____audioController) { if (____mallowState == Marshmallow.MallowState.Default) { ____fireRenderer.enabled = true; ____toastedFraction = 1f; ____initBurnTime = Time.time; ____mallowState = Marshmallow.MallowState.Burning; ____audioController.PlayMarshmallowCatchFire(); QSBEventManager.FireEvent(EventNames.QSBMarshmallowEvent, MarshmallowEventType.Burn); } return(false); }